diff options
Diffstat (limited to 'modules/system/home-manager/default.nix')
-rw-r--r-- | modules/system/home-manager/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/modules/system/home-manager/default.nix b/modules/system/home-manager/default.nix new file mode 100644 index 00000000..e6509b30 --- /dev/null +++ b/modules/system/home-manager/default.nix @@ -0,0 +1,59 @@ +{ + config, + lib, + pkgs, + nixpkgs_open_prs, + sysLib, + # extra information + system, + # bins + # TODO: Integrate these <2024-05-22> + river_init_lesser, + shell_library, + yambar_cpu, + yambar_memory, + # external deps + user_js, + # modules + impermanence, + nix-index-database, + nixVim, + ... +}: let + cfg = config.soispha.home-manager; +in { + options.soispha.home-manager = { + enable = lib.mkEnableOption "home-manager with custom config."; + }; + + config = lib.mkIf cfg.enable { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + # users.soispha = import ../../home; + extraSpecialArgs = { + inherit + nixpkgs_open_prs + sysLib + # extra information + + system + # bins + + yambar_cpu + yambar_memory + river_init_lesser + shell_library + # external deps + + user_js + # modules + + impermanence + nixVim + nix-index-database + ; + }; + }; + }; +} |