fix user public keys

This commit is contained in:
Dennis Wuitz
2023-12-25 18:54:38 +01:00
parent dd4466b5a3
commit 7fcf8af4ad
7 changed files with 26 additions and 23 deletions

View File

@ -14,6 +14,7 @@ in
description = "The cpu-type installed on the server.";
};
amdGPU = libS.mkOpinionatedOption "the system contains a AMD GPU";
fullDiskEncryption = libS.mkOpinionatedOption "use luks full disk encrytion";
};
};
@ -22,18 +23,14 @@ in
# networking for netcard kernelModules = [ "e1000e" ];
kernelModules = lib.mkIf cfg.amdGPU [ "amdgpu" ];
network.enable = true;
network.ssh = {
network = lib.mkIf cfg.fullDiskEncryption {
enable = true;
hostKeys = [
"/root/ssh_key"
];
port = 2222;
};
luks = {
devices."cryptroot" = {
device = "/dev/sda1";
preLVM = true;
ssh = {
enable = true;
hostKeys = [
"/root/ssh_key"
];
port = 2222;
};
};
};