diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /modules/sys/core/home-manager.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'modules/sys/core/home-manager.nix')
| -rw-r--r-- | modules/sys/core/home-manager.nix | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/sys/core/home-manager.nix b/modules/sys/core/home-manager.nix deleted file mode 100644 index 06f909f..0000000 --- a/modules/sys/core/home-manager.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, inputs, ... }: -{ - options.szpont.home-manager = { - enable = lib.mkEnableOption "Home Manager configuration manager"; - - 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 config.szpont.home-manager.enable { - home-manager = { - extraSpecialArgs = { inherit inputs; }; - useGlobalPkgs = true; - useUserPackages = true; - backupFileExtension = "bak"; - - users = lib.mapAttrs (name: user: import user.path) config.szpont.home-manager.users; - }; - }; -} |
