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/host.nix | |
| 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/host.nix')
| -rw-r--r-- | util/host.nix | 10 |
1 files changed, 7 insertions, 3 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; |
