2024-12-16 12:55:24 +00:00
|
|
|
{ inputs, lib, hostName, userName, flakeDir, plfrm, stVer, dev, ... }: {
|
2024-11-21 09:24:15 +00:00
|
|
|
flake = let
|
2024-12-16 12:55:24 +00:00
|
|
|
# INPUTS PKGS
|
|
|
|
inherit (inputs.nixpkgsStable) nixpkgsStable;
|
|
|
|
inherit (inputs.nixpkgsMaster) nixpkgsMaster;
|
|
|
|
# OTHER
|
|
|
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
|
|
|
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
|
|
|
# PKGS
|
2024-11-24 08:17:07 +00:00
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
2024-12-16 12:55:24 +00:00
|
|
|
pkgsS = nixpkgsStable.legacyPackages.x86_64-linux;
|
|
|
|
pkgsM = nixpkgsMaster.legacyPackages.x86_64-linux;
|
|
|
|
# NEEDS
|
2024-11-27 10:37:54 +00:00
|
|
|
sec = import ./secrets.nix;
|
2024-12-16 12:55:24 +00:00
|
|
|
x = import ./options.nix { inherit lib; } // {
|
|
|
|
inherit hostName userName flakeDir plfrm stVer dev sec;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
2024-12-16 12:55:24 +00:00
|
|
|
# ARGS
|
|
|
|
args = { inherit x inputs pkgsS pkgsM; };
|
|
|
|
in { # CONFIGURATION
|
|
|
|
nixosConfigurations.${hostName} = nixosSystem {
|
2024-11-27 10:37:54 +00:00
|
|
|
modules = [ ../${hostName}/host ];
|
2024-11-22 11:26:29 +00:00
|
|
|
specialArgs = args;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
2024-12-16 12:55:24 +00:00
|
|
|
homeConfigurations.${userName} = homeManagerConfiguration {
|
2024-11-27 10:37:54 +00:00
|
|
|
modules = [ ../${hostName}/home ];
|
2024-11-22 11:26:29 +00:00
|
|
|
extraSpecialArgs = args;
|
2024-11-24 08:17:07 +00:00
|
|
|
inherit pkgs;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|