diff options
| author | seth <[email protected]> | 2023-02-18 05:13:27 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-18 05:13:27 -0500 |
| commit | 1d7b04a71c7222153ffa9cd48f73b51ea72204d1 (patch) | |
| tree | 3d794209be0e2311dc76337c09c2cb39c52f6afb /util | |
| parent | 8a8059d9889afcbcd8a133b0b186e3a97ce7ac23 (diff) | |
major refactor
- `mkHost` now accepts an optional `specialArgs` argument to be passed to
`nixosSystem()`
- the `modules` argument for `mkHMUser` is now optional
Diffstat (limited to 'util')
| -rw-r--r-- | util/host.nix | 10 | ||||
| -rw-r--r-- | util/user.nix | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/util/host.nix b/util/host.nix index 90f1dec..869b674 100644 --- a/util/host.nix +++ b/util/host.nix @@ -3,12 +3,13 @@ name, modules, system ? "x86_64-linux", + specialArgs ? {}, version ? "22.11", pkgs, }: { ${name} = with pkgs.lib; nixosSystem { - inherit system; + inherit system specialArgs; modules = [ ../hosts/common @@ -27,8 +28,11 @@ home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = specialArgs; + }; } ] ++ modules; diff --git a/util/user.nix b/util/user.nix index 3d16651..62c29f2 100644 --- a/util/user.nix +++ b/util/user.nix @@ -4,7 +4,7 @@ stateVersion ? "22.11", system ? "x86_64-linux", channel, - modules, + modules ? [], }: home-manager.lib.homeManagerConfiguration { pkgs = channel.legacyPackages.${system}; |
