blob: 0c51f3c92ebc613bf4fa62caf8d06c63f6375d19 (
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, ... }: let
serverEmail = "poweredge@tjkeller.xyz";
in {
imports = [
./ddns-updater.nix
./networking.nix
#./notification-mailer.nix # TODO move some of this stuff to archetype
];
# Setup bootloader
boot._loader.enable = true;
# Enable common options
_archetypes = {
profiles.headless = {
enable = true;
home.users.timmy.enable = true;
};
profiles.zfs.enable = true;
profiles.router.enable = true;
};
# Enable smartd
services.smartd.enable = true; # TODO move to archetype
# Enable user timmy
_users.timmy.enable = true;
# Without this, "ZFS requires networking.hostId to be set" will be raised
networking.hostId = "4d9e002f";
system.stateVersion = "25.11";
}
|