From fd9b0ecef4142a62b45404700ba1cff488f84a73 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 23 May 2024 13:31:11 +0200 Subject: refactor(modules/home): Setup as "normal" NixOS module --- modules/system/home-manager/default.nix | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 modules/system/home-manager/default.nix (limited to 'modules/system') 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 + ; + }; + }; + }; +} -- cgit 1.4.1