fix: suzu

This commit is contained in:
Ryan Yin
2024-03-04 00:41:41 +08:00
parent d20760cd61
commit f933146a42
14 changed files with 160 additions and 187 deletions
-6
View File
@@ -1,6 +0,0 @@
{username, ...}: {
# Public Keys that can be used to login to all my servers.
users.users.${username}.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMzYT0Fpcp681eHY5FJV2G8Mve53iX3hMOLGbVvfL+TF ryan@romantic"
];
}
+19
View File
@@ -0,0 +1,19 @@
{
lib,
pkgs,
...
}: {
imports = [
../base/core.nix
../base/i18n.nix
../base/monitoring.nix
../base/nix.nix
../base/ssh.nix
../base/user-group.nix
../../base.nix
];
# Fix: jasper is marked as broken, refusing to evaluate.
environment.enableAllTerminfo = lib.mkForce false;
}
+4 -17
View File
@@ -4,19 +4,16 @@
# =========================================================================
imports = [
../base/core.nix
../base/i18n.nix
../base/misc.nix
../base/monitoring.nix
../base/nix.nix
../base/ssh.nix
../base/user-group.nix
../../base.nix
./security.nix
];
# List packages installed in system profile. To search, run:
# $ nix search wget
#
# TODO feel free to add or remove packages here.
environment.systemPackages = with pkgs; [
neovim
@@ -52,14 +49,4 @@
# This is required for containers which are created with the `--restart=always` flag to work.
enableOnBoot = true;
};
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "prohibit-password"; # disable root login with password
PasswordAuthentication = false; # disable password login
};
openFirewall = true;
};
}
-2
View File
@@ -2,7 +2,5 @@
imports = [
../base
../../base.nix
./security.nix
];
}