config/modules/default.nix

62 lines
1.1 KiB
Nix
Raw Normal View History

2022-02-05 20:42:36 +01:00
inputs:
with builtins;
let
aspects = [
./autopatch
2022-06-14 21:17:15 +02:00
./brig
2024-05-14 16:08:23 +02:00
./cockpit
2022-02-05 20:42:36 +01:00
./desktop
./firewall
./games
./hardened
./hyprspace
2023-06-17 09:30:47 +02:00
./idm
2023-11-13 21:22:36 +01:00
./impurity-logger
2022-11-13 02:12:44 +01:00
./ipfs
2022-02-05 20:42:36 +01:00
./jackett
./laptop-config
./lidarr
./networking-client
./nextcloud-client
./nix-builder
./nix-config
./nix-register-flakes
./nm-vdns-auto
./persistence
./prowlarr
./shell-config
./sound
./ssh
2023-12-07 20:26:12 +01:00
./xr
2022-02-05 20:42:36 +01:00
];
mappedAspects = map (x: { name = baseNameOf x; value = import x; }) aspects;
in rec {
modules = listToAttrs mappedAspects;
sets = with modules; rec {
base = [
autopatch
2024-05-14 16:08:23 +02:00
cockpit
2022-02-05 20:42:36 +01:00
hardened
2023-06-17 09:30:47 +02:00
idm
2023-11-13 21:22:36 +01:00
impurity-logger
2022-02-05 20:42:36 +01:00
];
networking = [ firewall ssh ];
2022-11-13 02:12:44 +01:00
client-networking = networking ++ [ networking-client nm-vdns-auto ipfs hyprspace ];
2022-02-05 20:42:36 +01:00
desktop = [
modules.desktop
inputs.home-manager.nixosModules.home-manager
nextcloud-client
nix-register-flakes
nix-config
shell-config
sound
2023-12-07 20:26:12 +01:00
xr
2022-02-05 20:42:36 +01:00
] ++ base ++ client-networking;
laptop = desktop ++ [ laptop-config ];
};
}