diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/c-pc/hardware.nix | 59 | ||||
| -rw-r--r-- | hosts/c-pc/network.nix | 28 |
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"; - }; -} |