1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 16:33:55 +00:00
ultima/workst/default.nix
2024-11-22 20:26:29 +09:00

38 lines
995 B
Nix

{ inputs, ... }:
let
hostName = "jetpure";
userName = "nixzoid";
in {
flake = let
lp = inputs.nixpkgs.legacyPackages.x86_64-linux;
args = rec { # IMPORTS LET_IN FROM HOSTS TO ALL SYSTEM
# DIRECTORIES
flakeDir = "/persist/flake";
homeDir = "${flakeDir}/modules/home";
nixosDir = "${flakeDir}/modules/nixos";
# OTHER
True = { enable = true; };
False = { enable = false; };
wm = {
sh = "Hyprland";
bar = "hyprland";
};
# SYSINFO
stateVersion = "24.05"; # IDK
platform = "x86_64-linux";
inherit inputs hostName userName;
};
in with inputs; {
formatter = { x86_64-linux = lp.nixfmt; };
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
modules = [ ./host ];
specialArgs = args;
};
homeConfigurations.${userName} = home-manager.lib.homeManagerConfiguration {
modules = [ ./home ];
extraSpecialArgs = args;
pkgs = lp;
};
};
}