diff options
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"; } |
