summaryrefslogtreecommitdiff
path: root/util/user.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-15 02:52:52 -0500
committerseth <[email protected]>2023-02-15 02:52:52 -0500
commit2633e7bcf3b42447d88dbb5645c2f7d0cb9a1418 (patch)
treef1f62bffb2189cb65ae649e44bb3fc1a4b558960 /util/user.nix
parented5a2aabd9d2253f9f7a9739f8b911f24f36101a (diff)
improve mkHost
Diffstat (limited to 'util/user.nix')
-rw-r--r--util/user.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/util/user.nix b/util/user.nix
index e69d46c..3d16651 100644
--- a/util/user.nix
+++ b/util/user.nix
@@ -4,20 +4,23 @@
stateVersion ? "22.11",
system ? "x86_64-linux",
channel,
+ modules,
}:
home-manager.lib.homeManagerConfiguration {
pkgs = channel.legacyPackages.${system};
- modules = [
- ../users/${username}/home.nix
- {
- nixpkgs.config.allowUnfree = true;
- systemd.user.startServices = true;
- home = {
- inherit username stateVersion;
- homeDirectory = "/home/${username}";
- };
- programs.home-manager.enable = true;
- }
- ];
+ modules =
+ [
+ ../users/${username}/home.nix
+ {
+ nixpkgs.config.allowUnfree = true;
+ systemd.user.startServices = true;
+ home = {
+ inherit username stateVersion;
+ homeDirectory = "/home/${username}";
+ };
+ programs.home-manager.enable = true;
+ }
+ ]
+ ++ modules;
};
}