blob: 9a81a45949e84a71eca18e9565ba89f9f2e57efe (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{
inputs,
pkgs,
host,
...
}:
let
username = "administrator";
in
{
imports = [
./hardware-configuration.nix
(import ../../modules/secrets/default.nix)
];
boot.tmp.cleanOnBoot = true;
boot.loader.grub.configurationLimit = 2;
zramSwap.enable = true;
swapDevices = [
{
device = "/var/swapfile";
size = 4096;
}
];
networking = {
hostName = host;
domain = "schererleander.de";
};
users.users.root.hashedPassword = "!";
users.mutableUsers = false;
users.users.${username} = {
isNormalUser = true;
hashedPassword = "$6$KBblJguEyfEmuWnU$Xf0QqPVacA2qvnzZRpnSE2cmh0kNnMgtVhCrMEDI76buNzuzkuDY6EnO7jPjQlEnoczx6ZPAl2pK.SxezbVa..";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvlkqlvY4+0o7UIGnFnnRw0HeBq5v7wYJ3kY3teXxxl vps"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINL+r0l2i07pl9V9iiGqw5e2f/QAcrMhuraA25HavdNT github-deploy"
];
};
environment.systemPackages = with pkgs; [
git
gnutar
gzip
zoxide
neovim
htop
];
system.autoUpgrade = {
enable = true;
flake = "github:schererleander/nix#${host}";
flags = [
"--update-input"
"nixpkgs"
"--no-write-lock-file"
"-L" # print build logs
];
allowReboot = true;
rebootWindow = {
lower = "02:00";
upper = "05:00";
};
};
nx.server = {
openssh.enable = true;
nginx.enable = true;
nextcloud.enable = true;
site.enable = true;
};
nixpkgs.config.allowUnfree = true;
system.stateVersion = "25.05";
}
|