Files
nixos/laptop/hardware-configuration.nix

117 lines
2.3 KiB
Nix
Raw Permalink Normal View History

2026-02-17 20:02:25 +01:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
2026-03-23 21:24:20 +01:00
}: {
2026-02-17 20:02:25 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2026-02-17 23:32:48 +01:00
boot = {
initrd = {
availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"uas"
"sd_mod"
];
2026-03-23 21:24:20 +01:00
kernelModules = [];
2026-02-17 23:32:48 +01:00
};
2026-03-23 21:24:20 +01:00
kernelModules = ["kvm-intel"];
extraModulePackages = [];
2026-02-25 01:14:42 +01:00
resumeDevice = "/dev/disk/by-uuid/bea07563-dc23-415b-b12f-ba53138bd492";
2026-02-18 00:13:02 +01:00
kernelParams = [
"snd_hda_intel.power_save=1"
"mem_sleep_default=deep"
"i915.enable_guc=3"
"i915.enable_fbc=1"
2026-02-18 00:35:38 +01:00
"i915.enable_psr=0"
"i915.fastboot=1"
2026-02-19 18:38:18 +01:00
"i915.enable_dc=2"
2026-02-18 00:35:38 +01:00
"video=eDP-1:1920x1080@60e"
2026-02-18 00:13:02 +01:00
];
2026-02-17 23:32:48 +01:00
};
2026-02-17 20:02:25 +01:00
fileSystems."/" = {
2026-02-17 23:32:48 +01:00
device = "/dev/disk/by-uuid/7b31f189-b34a-4cf0-95c5-bbcd6830159e";
2026-02-17 20:02:25 +01:00
fsType = "btrfs";
options = [
"subvol=@nix"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:8"
"autodefrag"
];
};
fileSystems."/home" = {
2026-02-17 23:32:48 +01:00
device = "/dev/disk/by-uuid/7b31f189-b34a-4cf0-95c5-bbcd6830159e";
2026-02-17 20:02:25 +01:00
fsType = "btrfs";
options = [
"subvol=@home"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:7"
"autodefrag"
];
};
fileSystems."/nix" = {
2026-02-17 23:32:48 +01:00
device = "/dev/disk/by-uuid/7b31f189-b34a-4cf0-95c5-bbcd6830159e";
2026-02-17 20:02:25 +01:00
fsType = "btrfs";
options = [
"subvol=@nix_nix"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
};
fileSystems."/var" = {
2026-02-17 23:32:48 +01:00
device = "/dev/disk/by-uuid/7b31f189-b34a-4cf0-95c5-bbcd6830159e";
2026-02-17 20:02:25 +01:00
fsType = "btrfs";
options = [
"subvol=@nix_var"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
};
fileSystems."/boot" = {
2026-02-17 23:32:48 +01:00
device = "/dev/disk/by-uuid/477C-4D52";
2026-02-17 20:02:25 +01:00
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
2026-02-17 23:32:48 +01:00
swapDevices = [
{
device = "/dev/disk/by-uuid/bea07563-dc23-415b-b12f-ba53138bd492";
priority = 0;
options = [
"defaults"
];
}
];
2026-02-17 20:02:25 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}