diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-03-28 18:46:16 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-03-28 18:46:16 -0500 |
| commit | 07cc1920136ce61980c80c6bde3c267fcbc6218f (patch) | |
| tree | c2a2afeaf1d782c54347a2baaee0429ec9449bd3 /hosts/poweredge/configuration.nix | |
| parent | 23b92aaaa7702221e80199c9d47fa1f73b3722c1 (diff) | |
| download | nixos-07cc1920136ce61980c80c6bde3c267fcbc6218f.tar.xz nixos-07cc1920136ce61980c80c6bde3c267fcbc6218f.zip | |
begin poweredge config
Diffstat (limited to 'hosts/poweredge/configuration.nix')
| -rw-r--r-- | hosts/poweredge/configuration.nix | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/hosts/poweredge/configuration.nix b/hosts/poweredge/configuration.nix index f031a3b..f62d017 100644 --- a/hosts/poweredge/configuration.nix +++ b/hosts/poweredge/configuration.nix @@ -1,15 +1,30 @@ -{ config, lib, pkgs, ... }: { - imports = [ ./hardware-configuration.nix ]; - - # Grub bootloader with zfs support - boot._loader = { - enable = true; - type = "grub"; - grub.zfsSupport = true; +{ 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; }; - # Disable suspend - suspend.enable = false; + # Enable smartd + services.smartd.enable = true; # TODO move to archetype + + # Enable user timmy + _users.timmy.enable = true; - system.stateVersion = "25.05"; + system.stateVersion = "25.11"; } |
