From 3cc506b83f03f2fb892473a517e7e985d95c8b61 Mon Sep 17 00:00:00 2001 From: yomaq Date: Mon, 20 Jan 2025 20:26:52 -0600 Subject: [PATCH] prep for green --- hosts/green/green.nix | 9 +++------ hosts/green/hardware-configuration.nix | 25 +++++++------------------ 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/hosts/green/green.nix b/hosts/green/green.nix index 09b4325..e14e4d5 100644 --- a/hosts/green/green.nix +++ b/hosts/green/green.nix @@ -15,7 +15,7 @@ ]; config = { networking.hostName = "green"; - system.stateVersion = "23.05"; + system.stateVersion = "23.11"; yomaq = { autoUpgrade.enable = true; @@ -26,12 +26,9 @@ "--ssh=true" "--reset=true" "--accept-dns=true" - "--advertise-exit-node=true" ]; useRoutingFeatures = "server"; }; - glances.enable = lib.mkForce false; - _1password.enable = true; timezone.central = true; suites = { basics.enable = true; @@ -43,11 +40,11 @@ systemd-boot = true; initrd-ssh = { enable = true; - ethernetDrivers = [ "e1000e" ]; + ethernetDrivers = [ "r8169" ]; }; zfs = { enable = true; - hostID = "2C2883D7"; + hostID = "cefcf5c9"; root = { disk1 = "nvme0n1"; impermanenceRoot = true; diff --git a/hosts/green/hardware-configuration.nix b/hosts/green/hardware-configuration.nix index 12aff0b..e0e636e 100644 --- a/hosts/green/hardware-configuration.nix +++ b/hosts/green/hardware-configuration.nix @@ -1,24 +1,13 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: { - config, - lib, - pkgs, - modulesPath, - ... -}: + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.kernelModules = [ "kvm-amd" ]; -{ - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - - boot.initrd.availableKernelModules = [ - "nvme" - "xhci_pci" - "ahci" - "usbhid" - "usb_storage" - "sd_mod" - ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} \ No newline at end of file