mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-10 02:02:36 +08:00
pc: Restore ssh
This commit is contained in:
parent
d6a15f13a3
commit
b50de6648c
1 changed files with 8 additions and 1 deletions
|
|
@ -11,7 +11,14 @@ in
|
|||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
networking.firewall.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 ];
|
||||
};
|
||||
|
||||
# Workaround the annoying `Failed to start Network Manager Wait Online` error on switch.
|
||||
# https://github.com/NixOS/nixpkgs/issues/180175
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue