diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-23 13:31:11 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-23 13:33:40 +0200 |
commit | fd9b0ecef4142a62b45404700ba1cff488f84a73 (patch) | |
tree | ef6c1f74f05a2220a41ccff4b0890c39229f32f7 /modules/system | |
parent | refactor(pkgs): Categorize into `by-name` shards (diff) | |
download | nixos-config-fd9b0ecef4142a62b45404700ba1cff488f84a73.tar.gz nixos-config-fd9b0ecef4142a62b45404700ba1cff488f84a73.zip |
refactor(modules/home): Setup as "normal" NixOS module
Diffstat (limited to '')
-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 + ; + }; + }; + }; +} |