Compare commits

..

2 Commits

Author SHA1 Message Date
1c582a48a4 merge: host config cleanup 2026-02-21 03:48:52 +01:00
cf8d0e72fe feat: move and cleanup host configs 2026-02-21 03:47:57 +01:00

View File

@@ -1,14 +1,5 @@
{ pkgs, lib, inputs, ... }:
let
keys = import ../../users/matej/keys.nix;
in
{ pkgs, lib, ... }:
{
imports = [
inputs.self.nixosModules.openssh
];
openssh.enable = true;
image.modules.iso-installer = {
isoImage.squashfsCompression = "zstd -Xcompression-level 6";
};
@@ -19,6 +10,17 @@ in
};
boot.loader.grub.device = lib.mkDefault "/dev/sda";
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
AllowUsers = null;
PermitRootLogin = "no";
StreamLocalBindUnlink = "yes";
};
};
networking.firewall.allowedTCPPorts = [ 22 ];
users = {
@@ -36,9 +38,14 @@ in
"wheel"
"users"
];
openssh.authorizedKeys.keys = keys.sshAuthorizedKeys;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICQGLdINKzs+sEy62Pefng0bcedgU396+OryFgeH99/c janezicmatej"
];
};
};
# boot.extraModulePackages = [ pkgs.linuxPackages.r8125 ];
# boot.blacklistedKernelModules = [ "r8169" ];
system.stateVersion = "25.05";
}