aboutsummaryrefslogtreecommitdiff
path: root/hosts/phoenix/hardware.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-04 22:26:52 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:45 -0700
commit1f5c44989e3f4432045f6e4178238db42e0f765e (patch)
treec56b31155e1b6a1fb1cc6a652eef5b41aea45513 /hosts/phoenix/hardware.nix
parent3dd1a6d822248204f8b2a2ea147ebca533e21f62 (diff)
migration: remove obsolete laptop config
Diffstat (limited to 'hosts/phoenix/hardware.nix')
-rw-r--r--hosts/phoenix/hardware.nix54
1 files changed, 0 insertions, 54 deletions
diff --git a/hosts/phoenix/hardware.nix b/hosts/phoenix/hardware.nix
deleted file mode 100644
index 640bfb1..0000000
--- a/hosts/phoenix/hardware.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- ];
-
- boot = {
- loader.grub = {
- enable = true;
-
- zfsSupport = true;
- efiSupport = true;
- efiInstallAsRemovable = true;
-
- mirroredBoots = [
- { devices = [ "nodev" ]; path = "/boot"; }
- ];
- };
-
- initrd = {
- availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
- kernelModules = [ ];
-
- 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-intel" ];
- extraModulePackages = [ ];
-
- supportedFilesystems = [ "ntfs" ];
- };
-
- fileSystems = {
- "/" = { fsType = "zfs"; neededForBoot = true; device = "zpool/root"; };
- "/nix" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/nix"; };
- "/home" = { fsType = "zfs"; neededForBoot = true; device = "zpool/home"; };
- "/persist" = { 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/C48C-5EE1"; };
- };
-
- swapDevices = [ ];
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}