diff --git a/lib/default.nix b/lib/default.nix index d1c321da..24c53dcb 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -32,34 +32,32 @@ ]; }; - - let - pkgs = import inputs.${repo} { - inherit system; - config.allowUnfree = unfree; - hostPlatform = system; - }; - unstable-pkgs = import inputs.nixpkgs-unstable { - inherit system; - config.allowUnfree = unfree; - hostPlatform = system; - }; - in { # Helper function for generating host configs - mkHost = { - hostname, - username ? "albert", - desktop ? null, - gpu ? null, - system ? "x86_64-linux", - theme ? "stylix", - type ? "default", - repo ? "nixpkgs", - unfree ? false - }: inputs.${repo}.lib.nixosSystem { + mkHost = { + hostname, + username ? "albert", + desktop ? null, + gpu ? null, + system ? "x86_64-linux", + theme ? "stylix", + type ? "default", + repo ? "nixpkgs", + unfree ? false + }: inputs.${repo}.lib.nixosSystem { + let + pkgs = import inputs.${repo} { + inherit system; + config.allowUnfree = unfree; + hostPlatform = system; + }; + unstable-pkgs = import inputs.nixpkgs-unstable { + inherit system; + config.allowUnfree = unfree; + hostPlatform = system; + }; + in { specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu system theme; }; - modules = [ # Types are 'default', 'small', and 'minimal' ../nixos/${type}.nix