refactor: centralise all modules

This commit is contained in:
Mohammad Rafiq 2025-03-27 03:19:25 +08:00
parent 1989535535
commit 6c60cd8e8b
No known key found for this signature in database
70 changed files with 151 additions and 188 deletions

37
configs/default.nix Normal file
View file

@ -0,0 +1,37 @@
{
lib,
hostname,
type,
modulesPath,
...
}:
{
imports = builtins.concatLists [
# Common options for all machines.
[
(modulesPath + "/installer/scan/not-detected.nix")
./boot.nix
./networking.nix
./nix-config.nix
./programs/zsh.nix
./security.nix
./users.nix
]
# Options for graphical systems.
(lib.optionals (type == "desktop") [
./hardware/audio.nix
./hardware/bluetooth.nix
./programs/getty.nix
./programs/hyprland.nix
./programs/hyprlock.nix
./stylix.nix
])
# Options for specific hostnames.
(lib.optionals (hostname == "nemesis") [
./hw-nemesis.nix
./bootloaders/systemd-boot.nix
./hardware/cpu_amd.nix
./hardware/nvidia.nix
])
];
}