ssh service and npins update
This commit is contained in:
parent
f4be9842c5
commit
70839731e1
4 changed files with 23 additions and 20 deletions
|
|
@ -6,6 +6,7 @@
|
|||
/etc/nixos/modules/nix.nix
|
||||
/etc/nixos/modules/tailscale.nix
|
||||
/etc/nixos/modules/ssl.nix
|
||||
/etc/nixos/modules/ssh.nix
|
||||
|
||||
./hardware-configuration.nix
|
||||
./users.nix
|
||||
|
|
@ -18,17 +19,6 @@
|
|||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.openssh.listenAddresses = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 22;
|
||||
}
|
||||
];
|
||||
services.openssh.ports = [ 22 ];
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
services.openssh.settings.AllowUsers = [ "root" ];
|
||||
|
||||
networking.hostName = "pepere";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ in
|
|||
/etc/nixos/modules/ssl.nix
|
||||
/etc/nixos/modules/tailscale.nix
|
||||
/etc/nixos/modules/backup
|
||||
/etc/nixos/modules/ssh.nix
|
||||
|
||||
# machine-specific config
|
||||
./bootloader.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue