{ config, lib, modulesPath, self, ... }: let nixosDevice = "/dev/disk/by-uuid/59148bdd-ecb1-49a0-beec-89d0adf909ae"; commonOptions = [ "noatime" ]; commonBtrfsOptions = [ "compress-force=zstd:1" "discard=async" "space_cache=v2" "ssd" ] ++ commonOptions; in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") (import "${self}/hosts/shared/hardware-configuration.nix") ]; config = { boot = { initrd = { availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; kernelModules = [ ]; }; kernelModules = [ "kvm-amd" ]; extraModulePackages = [ ]; }; fileSystems = { "/" = { device = nixosDevice; fsType = "btrfs"; options = commonBtrfsOptions ++ [ "subvol=@" ]; }; "/home" = { device = nixosDevice; fsType = "btrfs"; options = commonBtrfsOptions ++ [ "subvol=@home" ]; }; "/var" = { device = nixosDevice; fsType = "btrfs"; options = commonBtrfsOptions ++ [ "subvol=@var" ]; }; "/nix" = { device = nixosDevice; fsType = "btrfs"; options = commonBtrfsOptions ++ [ "subvol=@nix" ]; }; "/boot" = { device = "/dev/disk/by-uuid/C675-43E1"; fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; }; modules.mounts.plex = { enable = true; extraOptions = commonOptions; }; networking = { useDHCP = lib.mkDefault true; interfaces = { enp42s0.wakeOnLan.enable = true; wlan0.wakeOnLan.enable = true; }; }; swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }; }