From d1bfe309993175184c00d22fc116470b7777e947 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 25 Jul 2025 19:40:11 -0500 Subject: add poweredge host --- flake.nix | 2 ++ modules/hosts/poweredge/configuration.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 modules/hosts/poweredge/configuration.nix diff --git a/flake.nix b/flake.nix index 36e23fa..bee9ee6 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,7 @@ rec { documents = "${home}/docs"; pictures = "${home}/pics"; }; + sshPublicKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDnsnAWcz46OVi1MWSxpOIUtUvwalijDwvW+oEvNjzep" ]; }; homeStateVersion = "24.05"; # Lowest of systems is fine mkNixosConfiguration = hostname: nixpkgs.lib.nixosSystem { @@ -76,6 +77,7 @@ rec { "hp-envy-office" "libreX60" "optiplex" + "poweredge" ]); }; } diff --git a/modules/hosts/poweredge/configuration.nix b/modules/hosts/poweredge/configuration.nix new file mode 100644 index 0000000..08e392d --- /dev/null +++ b/modules/hosts/poweredge/configuration.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: { + imports = [ ./hardware-configuration.nix ]; + + # ZFS bootloader + bootloader.loader = "grub"; + bootloader.mode = "efi"; + boot.loader.grub = { + zfsSupport = true; + efiInstallAsRemovable = true; + mirroredBoots = [ + { devices = [ "nodev" ]; path = "/boot"; } + ]; + }; + + # Disable suspend + suspend.enable = false; + + system.stateVersion = "25.05"; +} -- cgit v1.2.3