From 6aaa5993e4c1cfb205ed555d958702f9bba1770d Mon Sep 17 00:00:00 2001 From: adikro Date: Wed, 24 Dec 2025 16:21:00 +0100 Subject: a bunch of changes, renames sys to os and refactored some of the logic --- sys/core/home-manager.nix | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 sys/core/home-manager.nix (limited to 'sys/core/home-manager.nix') 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; - }; - }; -} -- cgit v1.3