aboutsummaryrefslogtreecommitdiff
path: root/hosts/c-pc
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-03 19:30:44 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:17 -0700
commit5a0a36726756bc2a88770f8fd65418b6d3ce007b (patch)
treec6eac6d1e52f6171d5dcb6b06b706329e3239618 /hosts/c-pc
parentffc499cddd42ff4bea818718ae0b2f12d0e5dfbb (diff)
migration: barebones c-pc config
Diffstat (limited to 'hosts/c-pc')
-rw-r--r--hosts/c-pc/hardware.nix59
-rw-r--r--hosts/c-pc/network.nix28
2 files changed, 0 insertions, 87 deletions
diff --git a/hosts/c-pc/hardware.nix b/hosts/c-pc/hardware.nix
deleted file mode 100644
index 68cf8bd..0000000
--- a/hosts/c-pc/hardware.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- ];
-
- 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" ];
-
- 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 = [ ];
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/hosts/c-pc/network.nix b/hosts/c-pc/network.nix
deleted file mode 100644
index 969b49f..0000000
--- a/hosts/c-pc/network.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{ ... }:
-
-{
- networking = {
- hostName = "c-pc";
- hostId = "23ce94ff";
-
- useDHCP = true;
-
- wireless = {
- enable = true;
-
- # Import /etc/wpa_supplicant.conf networks
- allowAuxiliaryImperativeNetworks = true;
- };
-
- firewall = {
- enable = false;
-
- allowedTCPPorts = [ 8096 50000 ];
- allowedUDPPorts = [ ];
- };
- };
-
- environment.etc."wpa_supplicant.conf" = {
- source = "/secrets/wireless.conf";
- };
-}