blob: dfdbb64ea6cfdb6d447bf280b8f6ac32a7c55954 (
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
34
|
{config, lib, pkgs, ...}: {
imports = [
./hardware-configuration.nix
./minecraft.nix
./options.nix
./git.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
services.fail2ban.enable = true;
services.openssh = {
enable = true;
authorizedKeysInHomedir = false; # trust only /etc/ssh/authorized_keys.d/%u
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "kassouni" "git" ];
KbdInteractiveAuthentication = false;
PubkeyAuthentication = true;
};
};
users.users.kassouni = {
extraGroups = [ "wheel" ];
isNormalUser = true;
openssh.authorizedKeys.keys = config.my.adminKeys;
};
system.stateVersion = "26.05";
}
|