52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
inputs,
|
|
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
|
|
./security.nix
|
|
./shell
|
|
./users.nix
|
|
]
|
|
# Options for graphical systems.
|
|
(lib.optionals (type == "desktop") [
|
|
./graphical
|
|
./hardware/audio.nix
|
|
./hardware/bluetooth.nix
|
|
./stylix.nix
|
|
])
|
|
# Options for specific hostnames.
|
|
(lib.optionals (hostname == "nemesis") [
|
|
./bootloaders/systemd-boot.nix
|
|
./filesystems/hw-nemesis.nix
|
|
./hardware/cpu_amd.nix
|
|
./hardware/nvidia.nix
|
|
])
|
|
(lib.optionals (hostname == "mellinoe") [
|
|
./bootloaders/systemd-boot.nix
|
|
(import ./filesystems/impermanence.nix {
|
|
inherit inputs lib;
|
|
device = "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab";
|
|
})
|
|
./hardware/cpu_intel.nix
|
|
])
|
|
(lib.optionals (hostname == "apollo") [
|
|
./bootloaders/systemd-boot.nix
|
|
(import ./filesystems/impermanence.nix {
|
|
inherit inputs lib;
|
|
device = "/dev/disk/by-id/nvme-eui.002538d221b47b01";
|
|
})
|
|
./hardware/cpu_intel.nix
|
|
])
|
|
];
|
|
}
|