aboutsummaryrefslogtreecommitdiff
path: root/snowfall/systems/x86_64-linux/c-pc/hardware.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-04-14 19:01:38 -0700
committerCaroline Larimore <caroline@larimo.re>2025-04-14 19:01:38 -0700
commite8077fde966e051fc449fffcfa061c7f7edc47b0 (patch)
treea0b1ce60f2718f90c64e924ed8df8d5d4f0d2289 /snowfall/systems/x86_64-linux/c-pc/hardware.nix
parente486d896215e7ef04438809952bc7317512d5765 (diff)
migration: finalize
Diffstat (limited to 'snowfall/systems/x86_64-linux/c-pc/hardware.nix')
-rw-r--r--snowfall/systems/x86_64-linux/c-pc/hardware.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/snowfall/systems/x86_64-linux/c-pc/hardware.nix b/snowfall/systems/x86_64-linux/c-pc/hardware.nix
deleted file mode 100644
index 8f7f8cd..0000000
--- a/snowfall/systems/x86_64-linux/c-pc/hardware.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
- boot = {
- loader.grub = {
- enable = true;
-
- useOSProber = true;
-
- zfsSupport = true;
- efiSupport = true;
- efiInstallAsRemovable = true;
-
- mirroredBoots = [
- { devices = [ "nodev" ]; path = "/boot"; }
- ];
- };
-
- initrd = {
- availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
- kernelModules = [ "amdgpu" ];
-
- #TODO: re-enable impermanence
- # postDeviceCommands = lib.mkAfter ''
- # zfs rollback -r zpool/root@blank && zfs rollback -r zpool/home@blank
- # '';
-
- postMountCommands = lib.mkAfter ''
- chmod u=rw,g=,o= /secrets
- '';
- };
-
- kernelModules = [ "kvm-amd" ];
- extraModulePackages = [ ];
-
- supportedFilesystems = [ "ntfs" ];
- };
-
- fileSystems = {
- "/" = { fsType = "zfs"; neededForBoot = true; device = "zpool/root"; };
- "/nix" = { fsType = "zfs"; neededForBoot = true; device = "zpool/nix"; };
- "/home" = { fsType = "zfs"; neededForBoot = true; device = "zpool/home"; };
- "/persist" = { fsType = "zfs"; neededForBoot = true; device = "zpool/persist"; };
- "/persist/secure" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/persist"; };
- "/secrets" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/secrets"; };
-
- "/boot" = { fsType = "vfat"; device = "/dev/disk/by-uuid/12CE-A600"; };
-
- "/mnt/4tb" = { fsType = "ext4"; device = "/dev/disk/by-label/4tb"; };
- };
-
- swapDevices = [ ];
-
- hardware.enableRedistributableFirmware = true;
- hardware.cpu.amd.updateMicrocode = true;
-
- nixpkgs.hostPlatform = "x86_64-linux";
-}