summaryrefslogtreecommitdiff
path: root/util/host.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-01 02:08:49 -0500
committerseth <[email protected]>2023-03-01 02:08:49 -0500
commit6891fa0b2ebc082515a3532d3e23999054cfa3ef (patch)
treeb0ceaba4b7d17d09df1fc739dfa0ee013f3349c5 /util/host.nix
parent41d79acda75af9aa3f2feb54c3fb78d63f74d7b9 (diff)
add mkUser for more modular user creation
Diffstat (limited to 'util/host.nix')
-rw-r--r--util/host.nix12
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;
};