35 lines
471 B
Nix
35 lines
471 B
Nix
{
|
|
modulesPath,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}@attrs:
|
|
let
|
|
hostname = "${attrs.hostname}";
|
|
secrets = inputs.mysecrets;
|
|
in
|
|
{
|
|
imports =
|
|
[
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
./common
|
|
./grub
|
|
./networking
|
|
./sops
|
|
./sshd
|
|
./tty
|
|
./user
|
|
]
|
|
++ lib.optionals
|
|
(builtins.elem hostname [
|
|
"test-kvm"
|
|
"home-nix"
|
|
])
|
|
[
|
|
./desktop
|
|
./libvirt
|
|
./ssh
|
|
];
|
|
}
|