more tides configuration

This commit is contained in:
Nathan McCarty 2025-02-12 01:49:06 -05:00
parent 43288e9d33
commit e768957dcd
5 changed files with 19 additions and 15 deletions

View file

@ -31,6 +31,7 @@
./nixos/machines/wsl/configuration.nix
./nixos/machines/installer/configuration.nix
./nixos/machines/crash/machine.nix
./nixos/machines/tides/machine.nix
./home-manager/machines/wsl/home.nix
./home-manager/machines/crash/home.nix
./devshells/rust.nix

View file

@ -26,20 +26,5 @@
time.timeZone = "America/Louisville";
i18n.defaultLocale = "en_US.UTF-8";
# Enable passwordless sudo.
security.sudo.extraRules = [
{
users = ["nathan"];
commands = [
{
command = "ALL";
options = ["NOPASSWD"];
}
];
}
];
services.openssh.enable = true;
system.stateVersion = "24.11"; # Did you read the comment?
}

View file

@ -37,6 +37,7 @@
inherit inputs;
mutableUsers = false;
})
(import ../../modules/ssh.nix)
];
nix.settings.experimental-features = [

17
nixos/modules/ssh.nix Normal file
View file

@ -0,0 +1,17 @@
{
config,
lib,
pkgs,
...
}: {
services.openssh = {
enable = true;
settings = {
ciphers = ["chacha20-poly1305@openssh.com"];
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
programs.mosh.enable = true;
}