unclutter

This commit is contained in:
unexplrd
2025-02-07 13:31:41 +02:00
parent ff5765eeee
commit a33f397432
11 changed files with 188 additions and 194 deletions

View File

@ -17,56 +17,57 @@
bluetooth.enable = true;
};
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" "rtsx_pci_sdmmc"];
boot.initrd.kernelModules = ["i915"];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
boot.kernelParams = [
"i915.enable_guc=2"
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@nixos,compress=zstd"];
services.logind = {
lidSwitch = "ignore";
powerKey = "suspend";
};
boot.initrd.luks.devices."luks-149371a0-a41f-4c43-8935-cb199508c66a".device = "/dev/disk/by-uuid/149371a0-a41f-4c43-8935-cb199508c66a";
fileSystems."/home" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=home,compress=zstd"];
boot = {
kernelModules = ["kvm-intel"];
extraModulePackages = [];
kernelParams = [
"i915.enable_guc=2"
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
initrd = {
luks.devices."luks-149371a0-a41f-4c43-8935-cb199508c66a".device = "/dev/disk/by-uuid/149371a0-a41f-4c43-8935-cb199508c66a";
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" "rtsx_pci_sdmmc"];
kernelModules = ["i915"];
};
};
fileSystems."/storage" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@storage,compress=zstd"];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@nixos,compress=zstd"];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/F195-F7C0";
fsType = "vfat";
options = ["umask=0077"];
"/home" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=home,compress=zstd"];
};
"/storage" = {
device = "/dev/disk/by-uuid/6b850c3a-c7a2-461d-bce5-c631df4226bf";
fsType = "btrfs";
options = ["subvol=@storage,compress=zstd"];
};
"/boot" = {
device = "/dev/disk/by-uuid/F195-F7C0";
fsType = "vfat";
options = ["umask=0077"];
};
};
swapDevices = [];
# 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.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s20f0u1u2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# hardware.intelgpu.vaapiDriver = "intel-media-driver";
services.udev.extraHwdb = ''
evdev:input:b0011v0001p0001eAB83*