diff options
| author | seth <[email protected]> | 2023-03-01 02:08:49 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-01 02:08:49 -0500 |
| commit | 6891fa0b2ebc082515a3532d3e23999054cfa3ef (patch) | |
| tree | b0ceaba4b7d17d09df1fc739dfa0ee013f3349c5 /util/host.nix | |
| parent | 41d79acda75af9aa3f2feb54c3fb78d63f74d7b9 (diff) | |
add mkUser for more modular user creation
Diffstat (limited to 'util/host.nix')
| -rw-r--r-- | util/host.nix | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/util/host.nix b/util/host.nix index da2c692..2c7906c 100644 --- a/util/host.nix +++ b/util/host.nix @@ -1,4 +1,4 @@ -{home-manager, ...}: { +_: { mkHost = { name, modules, @@ -18,6 +18,7 @@ ({pkgs, ...}: { system.stateVersion = version; networking.hostName = mkDefault name; + # enable non-free packages nixpkgs.config = { allowUnfree = true; @@ -30,15 +31,6 @@ settings.experimental-features = ["nix-command" "flakes"]; }; }) - - home-manager.nixosModules.home-manager - { - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - extraSpecialArgs = specialArgs; - }; - } ] ++ modules; }; |
