Enable sshd for vbox host

This commit is contained in:
ItsDrike 2024-03-01 14:02:06 +01:00
parent 7f1b8b5d38
commit 8faa8c7197
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 15 additions and 1 deletions

View file

@ -3,6 +3,10 @@
in {
vboxnix = lib.nixosSystem {
system = "x86_64-linux";
modules = [ ../system ./vbox_nix ];
modules = [
../system
./vbox_nix
../modules/services/ssh.nix
];
};
}

10
modules/services/ssh.nix Normal file
View file

@ -0,0 +1,10 @@
{...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
X11Forwarding = false;
};
};
}