108 lines
3.3 KiB
Nix
108 lines
3.3 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.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ "nvidia" ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [
|
||
config.boot.kernelPackages.nvidiaPackages.stable
|
||
];
|
||
|
||
hardware.graphics = {
|
||
enable = true;
|
||
enable32Bit = true;
|
||
};
|
||
services.xserver.videoDrivers = [ "nvidia" ];
|
||
hardware.nvidia = {
|
||
modesetting.enable = true;
|
||
powerManagement.enable = false;
|
||
open = false;
|
||
nvidiaSettings = true;
|
||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||
};
|
||
|
||
boot.initrd.luks.devices = {
|
||
"luks-8573b24b-461f-40bf-b16b-9de1207c0696".device = "/dev/disk/by-uuid/8573b24b-461f-40bf-b16b-9de1207c0696";
|
||
"luks-140a35ca-67f9-41df-8414-51dcccc1a620".device = "/dev/disk/by-uuid/140a35ca-67f9-41df-8414-51dcccc1a620";
|
||
"luks-c6c23b31-a8d7-4b96-8caa-b2bdbcd49e72".device = "/dev/disk/by-uuid/c6c23b31-a8d7-4b96-8caa-b2bdbcd49e72";
|
||
};
|
||
|
||
fileSystems = {
|
||
"/" = {
|
||
device = "/dev/disk/by-uuid/8279665b-b695-4747-9206-9cc06b7fe303";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@" "compress=zstd" ];
|
||
};
|
||
|
||
"/media/2tb" = {
|
||
device = "/dev/disk/by-uuid/8279665b-b695-4747-9206-9cc06b7fe303";
|
||
fsType = "btrfs";
|
||
options = [ "compress=zstd" ];
|
||
};
|
||
|
||
"/home" = {
|
||
device = "/dev/disk/by-uuid/8279665b-b695-4747-9206-9cc06b7fe303";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@home" "compress=zstd" ];
|
||
};
|
||
|
||
"/nix" = {
|
||
device = "/dev/disk/by-uuid/8279665b-b695-4747-9206-9cc06b7fe303";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@nix" "compress=zstd" ];
|
||
};
|
||
|
||
"/boot" = {
|
||
device = "/dev/disk/by-uuid/383D-97DA";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0077" "dmask=0077" ];
|
||
};
|
||
|
||
"/media/8tb" = {
|
||
device = "/dev/disk/by-uuid/a484bd77-f454-44f9-b356-e5d9781583bc";
|
||
fsType = "btrfs";
|
||
options = [ "compress=zstd" ];
|
||
};
|
||
|
||
"/media/12tb" = {
|
||
device = "/dev/disk/by-uuid/c28abd09-22a1-46d7-8a61-4212143baafc";
|
||
fsType = "btrfs";
|
||
options = [ "compress=zstd" ];
|
||
};
|
||
|
||
"/media/Passport" = {
|
||
device = "/dev/disk/by-uuid/52A828CE3ED0D2C1";
|
||
fsType = "ntfs";
|
||
options = [ "nofail" "x-systemd.automount" ];
|
||
};
|
||
|
||
"/media/Elements" = {
|
||
device = "/dev/disk/by-uuid/f23ab941-238c-4422-9c1a-7359e84dd071";
|
||
fsType = "btrfs";
|
||
options = [ "compress=zstd" "nofail" "x-systemd.automount" ];
|
||
};
|
||
};
|
||
|
||
services.btrfs.autoScrub.enable = true;
|
||
|
||
swapDevices = [
|
||
{ device = "/media/8tb/swapfile"; }
|
||
];
|
||
|
||
# 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;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|