mirror of
https://git.sr.ht/~neverness/ultima
synced 2024-12-29 18:13:51 +00:00
40 lines
978 B
Nix
40 lines
978 B
Nix
|
{ inputs, ... }:
|
||
|
let
|
||
|
hostName = "jetpure";
|
||
|
userName = "nixzoid";
|
||
|
in {
|
||
|
flake = let
|
||
|
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; {
|
||
|
nixosConfigurations = {
|
||
|
${hostName} = nixpkgs.lib.nixosSystem {
|
||
|
modules = [ ./host ];
|
||
|
specialArgs = args;
|
||
|
};
|
||
|
};
|
||
|
homeConfigurations = {
|
||
|
${userName} = home-manager.lib.homeManagerConfiguration {
|
||
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
||
|
modules = [ ./home ];
|
||
|
extraSpecialArgs = args;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|