diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
| commit | 0de067092c9dd19c3352554e39de73e172f29b42 (patch) | |
| tree | 4175503766405733846687efdb29657bb322dccd /common/modules/default.nix | |
| parent | f1de2014dcd426e015a2638222160d9d349ea4e5 (diff) | |
Add modules
Diffstat (limited to 'common/modules/default.nix')
| -rw-r--r-- | common/modules/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/common/modules/default.nix b/common/modules/default.nix new file mode 100644 index 0000000..4df376f --- /dev/null +++ b/common/modules/default.nix @@ -0,0 +1,34 @@ +{ inputs, ... }: +let + lib = inputs.nixpkgs.lib; + mkMods = + homeManager: + let + args = { + moduleNameSpace = "beeMods"; + inherit inputs homeManager; + }; + modules = { + mango = import ./mango args; + terminal = import ./terminal args; + # beevim = import ./beevim args; + matugen = import ./matugen args; + }; + in + modules + // { + beeMods = { + imports = lib.attrValues modules; + }; + }; +in +{ + options.flake.homeModules = lib.mkOption { + type = lib.types.lazyAttrsOf lib.types.unspecified; + }; + + config = { + flake.nixosModules = mkMods false; + flake.homeModules = mkMods true; + }; +} |
