2018-06-05 22:55:07 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2021-08-20 19:19:50 -06:00
|
|
|
../users.nix
|
2021-07-11 04:19:34 -06:00
|
|
|
../full.nix
|
2018-06-05 22:55:07 -06:00
|
|
|
];
|
|
|
|
|
2021-08-20 19:19:50 -06:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
2018-06-14 17:04:36 -06:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
2018-06-05 22:55:07 -06:00
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/110e3bf8-19b7-4a39-8e2a-b4c3c0d59d0e";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/B2DA-CD21";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2018-07-19 15:01:00 -06:00
|
|
|
fileSystems."/windows" = {
|
|
|
|
device = "/dev/disk/by-uuid/DEFA1F27FA1EFC09";
|
|
|
|
fsType = "ntfs";
|
|
|
|
};
|
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
fileSystems."/arch-linux-root" = {
|
|
|
|
device = "/dev/disk/by-uuid/9095e51e-33f9-440d-a272-46e129800f81";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2018-06-19 23:30:38 -06:00
|
|
|
fileSystems."/backups" = {
|
|
|
|
device = "/dev/disk/by-uuid/752E628C67697A81";
|
|
|
|
fsType = "ntfs";
|
|
|
|
};
|
2018-06-14 17:04:36 -06:00
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
swapDevices =
|
|
|
|
[ { device = "/dev/disk/by-uuid/a6933b22-c7f4-4c57-b330-1450f313922e"; }
|
|
|
|
{ device = "/dev/disk/by-uuid/dbd49a76-4b3e-4b5c-9a88-68a9e61f6210"; }
|
|
|
|
];
|
|
|
|
|
2022-10-07 08:43:06 -06:00
|
|
|
nix.settings.maxJobs = lib.mkDefault 4;
|
2018-06-05 22:55:07 -06:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
2021-08-20 19:19:50 -06:00
|
|
|
# boot.initrd.luks.devices."cryptroot" = {
|
|
|
|
# name = "root";
|
|
|
|
# device = "/dev/sda3";
|
|
|
|
# preLVM = true;
|
|
|
|
# };
|
2018-06-05 22:55:07 -06:00
|
|
|
|
|
|
|
networking.hostName = "imalison-home";
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2018-06-16 21:59:06 -06:00
|
|
|
services.xserver = {
|
|
|
|
screenSection = ''
|
|
|
|
DefaultDepth 24
|
|
|
|
Option "RegistryDwords" "PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1"
|
|
|
|
Option "TripleBuffer" "True"
|
|
|
|
Option "Stereo" "0"
|
|
|
|
Option "nvidiaXineramaInfoOrder" "DFP-0"
|
|
|
|
Option "metamodes" "DVI-D-0: nvidia-auto-select +0+2160 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, HDMI-0: nvidia-auto-select +640+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, HDMI-1: nvidia-auto-select +2560+2160 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
|
|
|
|
Option "SLI" "Off"
|
|
|
|
Option "MultiGPU" "Off"
|
|
|
|
Option "BaseMosaic" "off"
|
|
|
|
'';
|
|
|
|
videoDrivers = [ "nvidia" ];
|
|
|
|
};
|
2018-06-05 22:55:07 -06:00
|
|
|
}
|