2024-11-21 09:24:15 +00:00
|
|
|
{ inputs, ... }:
|
|
|
|
let
|
|
|
|
hostName = "jetpure";
|
|
|
|
userName = "nixzoid";
|
|
|
|
in {
|
|
|
|
flake = let
|
2024-11-22 11:26:29 +00:00
|
|
|
lp = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
2024-11-21 09:24:15 +00:00
|
|
|
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; {
|
2024-11-22 11:26:29 +00:00
|
|
|
formatter = { x86_64-linux = lp.nixfmt; };
|
|
|
|
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [ ./host ];
|
|
|
|
specialArgs = args;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
2024-11-22 11:26:29 +00:00
|
|
|
homeConfigurations.${userName} = home-manager.lib.homeManagerConfiguration {
|
|
|
|
modules = [ ./home ];
|
|
|
|
extraSpecialArgs = args;
|
|
|
|
pkgs = lp;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|