diff --git a/hosts/parsons/configuration.nix b/hosts/parsons/configuration.nix new file mode 100644 index 0000000..386aa60 --- /dev/null +++ b/hosts/parsons/configuration.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, sources, modules, ... }: + +{ + imports = [ + ../../common + ./hardware.nix + modules.encboot + ((import sources.nix-hexchen) {}).profiles.nopersist + ]; + + hexchen.encboot = { + enable = true; + dataset = "-a"; + networkDrivers = [ "igb" ]; + }; + + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ]; + boot.supportedFilesystems = [ "zfs" ]; + + networking.hostId = "b2867696"; + networking.useDHCP = true; + + system.stateVersion = "21.05"; +} diff --git a/hosts/parsons/hardware.nix b/hosts/parsons/hardware.nix new file mode 100644 index 0000000..09b5f7a --- /dev/null +++ b/hosts/parsons/hardware.nix @@ -0,0 +1,50 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "zroot/local/root"; + fsType = "zfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/daf2a731-952f-45c7-9c25-49e1a2f56062"; + fsType = "ext4"; + }; + + fileSystems."/nix" = + { device = "zroot/local/nix"; + fsType = "zfs"; + }; + + fileSystems."/persist" = + { device = "zroot/safe/persist"; + fsType = "zfs"; + }; + + fileSystems."/home" = + { device = "zroot/safe/home"; + fsType = "zfs"; + }; + + fileSystems."/tmp" = + { device = "zroot/local/tmp"; + fsType = "zfs"; + }; + + fileSystems."/persist/data" = + { device = "dpool/safe/data"; + fsType = "zfs"; + }; + + swapDevices = [ ]; + +}