Skip to content

Commit

Permalink
prep for green
Browse files Browse the repository at this point in the history
  • Loading branch information
yomaq committed Jan 21, 2025
1 parent 06663f0 commit 3cc506b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
9 changes: 3 additions & 6 deletions hosts/green/green.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
];
config = {
networking.hostName = "green";
system.stateVersion = "23.05";
system.stateVersion = "23.11";

yomaq = {
autoUpgrade.enable = true;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
25 changes: 7 additions & 18 deletions hosts/green/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 3cc506b

Please sign in to comment.