refactor: replaced all with with builtins.attrValues

This commit is contained in:
Nick 2024-11-04 19:24:06 -06:00
parent f87d465a2c
commit b08a7694a5
12 changed files with 236 additions and 153 deletions

View file

@ -58,54 +58,67 @@ let
in {
flake.nixosModules = {
personal = {
imports = with modules; [
android
audio
bluetooth
corectrl
dconf
disks
firejail
flatpak
fonts
nur
plasma
printing
sddm
steam
sysstat
virtualization
];
imports = builtins.attrValues {
inherit
(modules)
android
audio
bluetooth
corectrl
dconf
disks
firejail
flatpak
fonts
nur
plasma
printing
sddm
steam
sysstat
virtualization
;
};
};
desktop = {
imports = with modules; [
syncthing
# ollama
];
imports = builtins.attrValues {
inherit
(modules)
syncthing
# ollama
;
};
};
server = {
imports = with modules; [
services
];
imports = builtins.attrValues {
inherit
(modules)
services
;
};
};
shared = {
imports = with modules; [
accounts
doas
environment
gvfs
home-manager
locale
nix
rsyncd
sops
ssh
system
xserver
];
imports = builtins.attrValues {
inherit
(modules)
accounts
doas
environment
gvfs
home-manager
locale
nix
rsyncd
sops
ssh
system
xserver
;
};
};
};
}