mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:24:35 +00:00
Enable sshd for vbox host
This commit is contained in:
parent
7f1b8b5d38
commit
8faa8c7197
|
@ -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
10
modules/services/ssh.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false;
|
||||
X11Forwarding = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue