citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

default.nix (1219B)


      1 { config, lib, pkgs, ... }:
      2 {
      3 
      4   boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "amdgpu" "vfio-pci" ];
      5   #boot.initrd.preDeviceCommands = ''
      6   #   DEVS="0000:27:00.0 0000:27:00.1"
      7   #   for DEV in $DEVS; do
      8   #     echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
      9   #   done
     10   #   modprobe -i vfio-pci
     11   #'';
     12 
     13   boot.kernelParams = [ "amdgpu.gpu_recovery=1" ];
     14   boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
     15   boot.loader.grub.copyKernels = true;
     16   #boot.extraModulePackages = [ config.boot.kernelPackages.rtl8188eus-aircrack ];
     17 
     18   fileSystems."/" =
     19     { device = "znix/root/nixos";
     20       fsType = "zfs";
     21     };
     22 
     23   fileSystems."/home" =
     24     { device = "znix/home";
     25       fsType = "zfs";
     26     };
     27 
     28   #fileSystems."/zbig" =
     29   #  { device = "zbig";
     30   #    fsType = "zfs";
     31   #  };
     32 
     33   fileSystems."/chonk" =
     34     { device = "chonk";
     35       fsType = "zfs";
     36     };
     37 
     38   fileSystems."/titan" =
     39     { device = "titan";
     40       fsType = "zfs";
     41     };
     42 
     43   # swapDevices =
     44   #   [ { device = "/dev/disk/by-uuid/d4e4ae51-9179-439d-925b-8df42dd1bfc5"; }
     45   #   ];
     46 
     47   hardware.enableAllFirmware = true;
     48 
     49   boot.loader.grub.devices = [ "/dev/nvme0n1" ];
     50   boot.supportedFilesystems = ["zfs"];
     51 }