Files
nixos/desktop/hardware-configuration.nix

196 lines
4.2 KiB
Nix
Raw Permalink Normal View History

2025-10-30 18:26:18 +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.
2025-11-03 14:44:57 +01:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
2025-10-30 18:26:18 +01:00
{
2025-11-03 14:44:57 +01:00
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2026-02-17 20:02:25 +01:00
2026-01-02 21:14:30 +01:00
boot = {
initrd = {
kernelModules = [ ];
verbose = false;
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"uas"
"usbhid"
"sd_mod"
];
};
2026-02-17 20:02:25 +01:00
2026-01-02 21:14:30 +01:00
kernelModules = [
"kvm-amd"
"nct6683"
];
2026-02-17 20:02:25 +01:00
2026-01-02 21:14:30 +01:00
extraModulePackages = with config.boot.kernelPackages; [
pkgs.linuxKernel.packages.linux_xanmod_latest.zenpower
];
2026-02-17 20:02:25 +01:00
2026-01-02 21:14:30 +01:00
blacklistedKernelModules = [ "k10temp" ];
kernelParams = [
"amdgpu.seamless=1"
"rd.udev.log_priority=3"
"vt.global_cursor_default=0"
];
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=@nix"
"ssd"
"space_cache=v2"
"noatime"
2026-02-01 20:05:32 +01:00
"compress=zstd:8"
2025-11-03 14:44:57 +01:00
"autodefrag"
];
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/home" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=@home"
"ssd"
"space_cache=v2"
"noatime"
2026-02-01 20:05:32 +01:00
"compress=zstd:7"
"autodefrag"
];
};
fileSystems."/home/jax/.local/share/Steam" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=steam"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:8"
2025-11-03 14:44:57 +01:00
"autodefrag"
];
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=@nix_nix"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/var" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=@nix_var"
"ssd"
"space_cache=v2"
"noatime"
2026-02-01 20:05:32 +01:00
"compress=zstd:10"
2025-11-03 14:44:57 +01:00
"autodefrag"
];
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3DB5-50DE";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
2025-10-30 18:26:18 +01:00
2025-11-03 14:44:57 +01:00
fileSystems."/media/data" = {
device = "/dev/disk/by-uuid/4c0c8b24-6fca-49c1-8e34-e00e240576e3";
fsType = "btrfs";
options = [
"subvol=Data"
"space_cache=v2"
2026-02-01 20:05:32 +01:00
"compress=zstd:8"
2025-11-03 14:44:57 +01:00
"noatime"
"autodefrag"
];
};
fileSystems."/media/games" = {
device = "/dev/disk/by-uuid/4c0c8b24-6fca-49c1-8e34-e00e240576e3";
fsType = "btrfs";
options = [
"subvol=Games"
"space_cache=v2"
"compress=zstd:5"
"noatime"
"autodefrag"
];
};
2025-10-30 18:26:18 +01:00
2026-02-12 17:12:18 +01:00
fileSystems."/media/home-backup" = {
device = "/dev/disk/by-uuid/4c0c8b24-6fca-49c1-8e34-e00e240576e3";
fsType = "btrfs";
options = [
"subvol=home-backup"
"space_cache=v2"
"compress=zstd:10"
"noatime"
"autodefrag"
];
};
2025-11-03 14:44:57 +01:00
fileSystems."/media/pipa" = {
device = "/dev/disk/by-uuid/0013f713-acf4-496b-b43f-25258283b884";
fsType = "f2fs";
options = [
2026-02-01 20:05:32 +01:00
"compress_algorithm=zstd:10"
2025-11-03 14:44:57 +01:00
"compress_chksum"
"atgc"
"gc_merge"
"lazytime"
];
};
2025-10-30 18:26:18 +01:00
2025-12-13 22:40:39 +01:00
fileSystems."/media/pipa/pixelage" = {
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
fsType = "btrfs";
options = [
"subvol=pixelage"
"ssd"
"space_cache=v2"
"noatime"
"compress=zstd:10"
"autodefrag"
];
};
2025-10-30 18:26:18 +01:00
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.enp42s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}