mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 16:04:34 +00:00
Enable sshd for vbox host
This commit is contained in:
parent
7f1b8b5d38
commit
8faa8c7197
|
@ -3,6 +3,10 @@
|
||||||
in {
|
in {
|
||||||
vboxnix = lib.nixosSystem {
|
vboxnix = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
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