First commit
This commit is contained in:
34
modules/default.nix
Normal file
34
modules/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user