refactor: centralise all modules
This commit is contained in:
parent
1989535535
commit
6c60cd8e8b
70 changed files with 151 additions and 188 deletions
37
configs/default.nix
Normal file
37
configs/default.nix
Normal 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
|
||||
])
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue