summaryrefslogtreecommitdiff
path: root/util/user.nix
diff options
context:
space:
mode:
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;
};
}