moved openssh config to common

This commit is contained in:
Leyla Becker 2024-09-18 13:07:17 -05:00
parent 513cc95af7
commit dbd4407754
2 changed files with 13 additions and 11 deletions

View file

@ -29,6 +29,19 @@
users.groups.users = {};
services = {
openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
};
};
};
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";

View file

@ -51,17 +51,6 @@
excludePackages = [ pkgs.xterm ];
};
openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ]
UseDns = true;
X11Forwarding = false;
};
};
nfs.server = {
enable = true;
exports = ''