mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-05 12:31:41 +02:00
fix: suzu
This commit is contained in:
@@ -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"
|
||||
];
|
||||
}
|
||||
@@ -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,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,7 +2,5 @@
|
||||
imports = [
|
||||
../base
|
||||
../../base.nix
|
||||
|
||||
./security.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user