mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-03-31 17:50:23 +02:00
194 lines
4.2 KiB
Nix
194 lines
4.2 KiB
Nix
# 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,
|
||
...
|
||
}: {
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot = {
|
||
initrd = {
|
||
kernelModules = [];
|
||
verbose = false;
|
||
availableKernelModules = [
|
||
"nvme"
|
||
"xhci_pci"
|
||
"ahci"
|
||
"uas"
|
||
"usbhid"
|
||
"sd_mod"
|
||
];
|
||
};
|
||
|
||
kernelModules = [
|
||
"kvm-amd"
|
||
"nct6683"
|
||
];
|
||
|
||
extraModulePackages = with config.boot.kernelPackages; [
|
||
pkgs.linuxKernel.packages.linux_xanmod_latest.zenpower
|
||
];
|
||
|
||
blacklistedKernelModules = ["k10temp"];
|
||
|
||
kernelParams = [
|
||
"amdgpu.seamless=1"
|
||
"rd.udev.log_priority=3"
|
||
"vt.global_cursor_default=0"
|
||
];
|
||
};
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@nix"
|
||
"ssd"
|
||
"space_cache=v2"
|
||
"noatime"
|
||
"compress=zstd:8"
|
||
"autodefrag"
|
||
];
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@home"
|
||
"ssd"
|
||
"space_cache=v2"
|
||
"noatime"
|
||
"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"
|
||
"autodefrag"
|
||
];
|
||
};
|
||
|
||
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"
|
||
];
|
||
};
|
||
|
||
fileSystems."/var" = {
|
||
device = "/dev/disk/by-uuid/688ed267-cec9-400a-9226-32b0538eaecd";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@nix_var"
|
||
"ssd"
|
||
"space_cache=v2"
|
||
"noatime"
|
||
"compress=zstd:10"
|
||
"autodefrag"
|
||
];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/3DB5-50DE";
|
||
fsType = "vfat";
|
||
options = [
|
||
"fmask=0022"
|
||
"dmask=0022"
|
||
];
|
||
};
|
||
|
||
fileSystems."/media/data" = {
|
||
device = "/dev/disk/by-uuid/4c0c8b24-6fca-49c1-8e34-e00e240576e3";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=Data"
|
||
"space_cache=v2"
|
||
"compress=zstd:8"
|
||
"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"
|
||
];
|
||
};
|
||
|
||
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"
|
||
];
|
||
};
|
||
|
||
fileSystems."/media/pipa" = {
|
||
device = "/dev/disk/by-uuid/0013f713-acf4-496b-b43f-25258283b884";
|
||
fsType = "f2fs";
|
||
options = [
|
||
"compress_algorithm=zstd:10"
|
||
"compress_chksum"
|
||
"atgc"
|
||
"gc_merge"
|
||
"lazytime"
|
||
];
|
||
};
|
||
|
||
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"
|
||
];
|
||
};
|
||
|
||
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";
|
||
}
|