mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
111 lines
1.8 KiB
Nix
Executable file
111 lines
1.8 KiB
Nix
Executable file
let
|
|
modulesPath = ./modules;
|
|
|
|
modules =
|
|
builtins.foldl' (
|
|
emptySet: importedModules:
|
|
emptySet // importedModules
|
|
) {} (map
|
|
(name: {
|
|
"${name}" = import (modulesPath + "/${name}");
|
|
})
|
|
[
|
|
"services"
|
|
])
|
|
// builtins.foldl' (
|
|
emptySet: importedModules:
|
|
emptySet // importedModules
|
|
) {} (map
|
|
(name: {
|
|
"${name}" = import (modulesPath + "/${name}.nix");
|
|
})
|
|
[
|
|
"accounts"
|
|
"android"
|
|
"audio"
|
|
"bluetooth"
|
|
"corectrl"
|
|
"dconf"
|
|
"disks"
|
|
"doas"
|
|
"environment"
|
|
"firejail"
|
|
"flatpak"
|
|
"fonts"
|
|
"gnome"
|
|
"greetd"
|
|
"gvfs"
|
|
"home-manager"
|
|
"locale"
|
|
"network"
|
|
"nix"
|
|
"nur"
|
|
"ollama"
|
|
"plasma"
|
|
"printing"
|
|
"regreet"
|
|
"rsyncd"
|
|
"sddm"
|
|
"sops"
|
|
"ssh"
|
|
"steam"
|
|
"syncthing"
|
|
"sysstat"
|
|
"system"
|
|
"virtualization"
|
|
"xserver"
|
|
]);
|
|
in {
|
|
flake.nixosModules = {
|
|
personal = {
|
|
imports = with modules; [
|
|
android
|
|
audio
|
|
bluetooth
|
|
corectrl
|
|
dconf
|
|
disks
|
|
firejail
|
|
flatpak
|
|
fonts
|
|
nur
|
|
plasma
|
|
printing
|
|
sddm
|
|
steam
|
|
sysstat
|
|
virtualization
|
|
];
|
|
};
|
|
|
|
desktop = {
|
|
imports = with modules; [
|
|
syncthing
|
|
# ollama
|
|
];
|
|
};
|
|
|
|
server = {
|
|
imports = with modules; [
|
|
services
|
|
];
|
|
};
|
|
|
|
shared = {
|
|
imports = with modules; [
|
|
accounts
|
|
doas
|
|
environment
|
|
gvfs
|
|
home-manager
|
|
locale
|
|
nix
|
|
rsyncd
|
|
sops
|
|
ssh
|
|
system
|
|
xserver
|
|
];
|
|
};
|
|
};
|
|
}
|