From a7c3d07078d0ca67afadd6fb24ab4b60b38c1109 Mon Sep 17 00:00:00 2001 From: tdback Date: Sun, 26 Jan 2025 11:31:00 -0500 Subject: hosts: overhauled host configurations --- hosts/frigg/default.nix | 63 ++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 32 deletions(-) (limited to 'hosts/frigg/default.nix') diff --git a/hosts/frigg/default.nix b/hosts/frigg/default.nix index cde7436..5c29df3 100644 --- a/hosts/frigg/default.nix +++ b/hosts/frigg/default.nix @@ -1,8 +1,34 @@ -{ lib, inputs, ... }: +{ + inputs, + lib, + ... +}: { system.stateVersion = "24.05"; - imports = [ ./hardware.nix ]; + imports = [ + ./filesystems + ./modules + ]; + + hardware = { + enableRedistributableFirmware = true; + cpu.intel.updateMicrocode = true; + }; + + boot.loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + boot.initrd.availableKernelModules = [ + "ahci" + "sd_mod" + "sdhci_pci" + "usb_storage" + "xhci_pci" + ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.zfs.extraPools = [ "tank" ]; home-manager = { useGlobalPkgs = true; @@ -14,9 +40,11 @@ }; }; + time.timeZone = "America/Detroit"; networking = { hostName = "frigg"; - hostId = "7a7d723a"; # Required for ZFS support. + # A host ID is required when enabling ZFS. + hostId = "7a7d723a"; nameservers = [ "10.44.0.1" ]; defaultGateway.address = "10.44.0.1"; interfaces.enp59s0 = { @@ -27,33 +55,4 @@ }; }; }; - - time.timeZone = "America/Detroit"; - - boot = { - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - zfs.extraPools = [ "tank" ]; - }; - - services.zquota = { - enable = true; - quotas = { - "tank/sftpgo" = 512; - }; - }; - - services.sftpgo.dataDir = "/tank/sftpgo"; - - programs.motd = { - enable = true; - networkInterfaces = [ "enp59s0" ]; - servicesToCheck = [ - "caddy" - "sftpgo" - "zfs-zed" - ]; - }; } -- cgit v1.2.3