blob: 833527817afd85e6ee2f8de68163a3cff117861e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{config, lib, pkgs, ...}: {
imports = [
./hardware-configuration.nix
./minecraft.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
services.fail2ban.enable = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "kassouni" ];
KbdInteractiveAuthentication = false;
PubkeyAuthentication = true;
};
};
users.users.kassouni = {
extraGroups = [ "wheel" ];
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBmhTnNG0ym84RJzbIcDCwGmPFVaFPkSYiUtNQrrnV6"
];
};
system.stateVersion = "26.05";
}
|