summaryrefslogtreecommitdiff
path: root/sys/core/home-manager.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/core/home-manager.nix')
-rw-r--r--sys/core/home-manager.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/core/home-manager.nix b/sys/core/home-manager.nix
deleted file mode 100644
index 7bc4b18..0000000
--- a/sys/core/home-manager.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{ inputs, config, lib, username, ... }:
-let
- cfg = config.sys.core.home-manager;
-in
-{
- imports = [ inputs.home-manager.nixosModules.home-manager ];
-
- options.sys.core.home-manager = {
- enable = lib.mkEnableOption "home Manager configuration";
-
- users = lib.mkOption {
- default = {};
- description = "Attribute set of users and their home-manager configurations";
- type = lib.types.attrsOf (lib.types.submodule {
- options = {
- path = lib.mkOption {
- type = lib.types.path;
- description = "Path to the user's home.nix file";
- };
- };
- });
- };
- };
- config = lib.mkIf cfg.enable {
- home-manager = {
- extraSpecialArgs = { inherit inputs username; };
- useGlobalPkgs = true;
- useUserPackages = true;
- backupFileExtension = "bak";
-
- users = lib.mapAttrs (name: userCfg: {
- imports = [ userCfg.path ];
- }) cfg.users;
- };
- };
-}