35 lines
718 B
Nix
35 lines
718 B
Nix
{
|
|
isHM ? null,
|
|
lib,
|
|
...
|
|
}: {
|
|
assertions = [
|
|
{
|
|
assertion = isHM != null;
|
|
message = "The \"home-manager\" flag isHM is required.";
|
|
}
|
|
];
|
|
imports =
|
|
[
|
|
# modules containing both system and home-manager configs
|
|
./bin/nix-scripts.nix
|
|
]
|
|
++ lib.optionals (! isHM) [
|
|
# pure system modules
|
|
./desktop/de
|
|
./desktop/dm
|
|
./hardware/bluetooth.nix
|
|
./hardware/sound.nix
|
|
./hardware/yubikey.nix
|
|
./networking/wireguard
|
|
./services/borg-server.nix
|
|
./services/nextcloud-instance.nix
|
|
./services/virt-manager.nix
|
|
]
|
|
++ lib.optionals isHM [
|
|
# pure home-manager modules
|
|
./home/doom
|
|
./home/hyprland
|
|
];
|
|
}
|