{ config, lib, pkgs, ... }: let btrfs = "/dev/disk/by-uuid/c7889c5c-c5b6-4e3c-9645-dfd49c2e84d0"; in { boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod_stable; boot.extraModulePackages = [ ]; boot.tmp.useTmpfs = true; boot.supportedFilesystems = [ "zfs" ]; boot.zfs = { package = pkgs.zfs_unstable; extraPools = [ "data" ]; forceImportRoot = false; }; services.zfs.autoScrub.enable = true; services.btrfs.autoScrub.enable = true; networking.hostId = "10ca95b4"; my.persist.btrfs = { device = btrfs; mountPoint = "/nix/persist"; persistSubvol = "persist"; rootSubvol = "root"; zstdCompress = true; }; fileSystems."/nix" = { device = btrfs; fsType = "btrfs"; options = [ "compress=zstd" "subvol=nix" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/32AA-2998"; fsType = "vfat"; options = [ "uid=0" "gid=0" "fmask=0077" "dmask=0077" ]; }; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault false; hardware.enableRedistributableFirmware = lib.mkDefault true; hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware; nixpkgs.hostPlatform = lib.mkForce "x86_64-linux"; }