blob: ce734fe1007f7385f64e64d471367317c4bc7f64 (
plain) (
tree)
|
|
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
#Filesystems
fileSystems."/" =
{ device = "/dev/disk/by-uuid/83cafaff-8be3-477f-b13c-c47dafdf969d";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/40EA-5550";
fsType = "vfat";
};
fileSystems."/mnt/jonshare" = {
device = "homenas:/var/data/jon";
fsType = "nfs";
};
fileSystems."/mnt/plexshare" = {
device = "homenas:/var/data/plex";
fsType = "nfs";
};
fileSystems."/mnt/share" = {
device = "homenas:/var/data/shared";
fsType = "nfs";
};
swapDevices =
[
{ device = "/dev/disk/by-uuid/acfc7ea5-0787-4e05-bcf1-20b7adb0f35c"; }
];
#SSD-optimization
services.fstrim.enable = true;
#Hardware
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
#Firmware
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
#Networking
networking.hostName = "jonbox";
networking.useDHCP = lib.mkDefault true;
networking.networkmanager.enable = true;
}
|