aboutsummaryrefslogtreecommitdiff
path: root/hosts/frigg/default.nix
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-26 11:31:00 -0500
committertdback <tyler@tdback.net>2025-01-26 11:31:00 -0500
commita7c3d07078d0ca67afadd6fb24ab4b60b38c1109 (patch)
treeb214be5bc6bd1ea67c0499ee54ce3ec06565e929 /hosts/frigg/default.nix
parent63883c4dea9ca50a4fd8756323ab04bf66e3dd3d (diff)
hosts: overhauled host configurations
Diffstat (limited to 'hosts/frigg/default.nix')
-rw-r--r--hosts/frigg/default.nix63
1 files changed, 31 insertions, 32 deletions
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"
- ];
- };
}