This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / machines / xerxes / physical.nix
1.8 kB 83 lines
1{ 2 modulesPath, 3 pkgs, 4 lib, 5 ... 6}: 7{ 8 imports = [ 9 ./config.nix 10 (modulesPath + "/installer/scan/not-detected.nix") 11 ]; 12 13 boot.loader.grub = { 14 enable = true; 15 device = "/dev/sda"; 16 efiSupport = true; 17 efiInstallAsRemovable = true; 18 }; 19 20 boot.blacklistedKernelModules = [ 21 "sdhci_pci" 22 ]; 23 24 boot.initrd.availableKernelModules = [ 25 "xhci_pci" 26 "ahci" 27 "usbhid" 28 "sd_mod" 29 ]; 30 boot.initrd.luks.devices.crypted.device = "/dev/sda3"; 31 boot.kernelModules = [ "kvm-intel" ]; 32 boot.kernelParams = [ 33 "fbcon=rotate:1" 34 "boot.shell_on_fail" 35 ]; 36 37 fileSystems."/" = { 38 device = "/dev/disk/by-uuid/8efd0c22-f712-46bf-baad-1fbf19d9ec25"; 39 fsType = "xfs"; 40 }; 41 42 fileSystems."/boot" = { 43 device = "/dev/disk/by-uuid/7F23-DDB4"; 44 fsType = "vfat"; 45 }; 46 47 swapDevices = [ ]; 48 49 boot.extraModprobeConfig = '' 50 options zfs zfs_arc_max=107374182 51 ''; 52 53 nix.maxJobs = lib.mkDefault 4; 54 55 networking.hostId = "9b0a74ac"; 56 networking.networkmanager.enable = true; 57 58 hardware.opengl.enable = true; 59 60 services.tlp.enable = true; 61 services.tlp.extraConfig = '' 62 CPU_SCALING_GOVERNOR_ON_AC=ondemand 63 CPU_SCALING_GOVERNOR_ON_BAT=powersave 64 CPU_MIN_PERF_ON_AC=0 65 CPU_MAX_PERF_ON_AC=100 66 CPU_MIN_PERF_ON_BAT=0 67 CPU_MAX_PERF_ON_BAT=30 68 ''; 69 70 services.logind.extraConfig = '' 71 HandlePowerKey=suspend 72 IdleAction=suspend 73 IdleActionSec=300 74 ''; 75 76 services.xserver = { 77 videoDrivers = [ "intel" ]; 78 displayManager.sessionCommands = '' 79 (sleep 2 && ${pkgs.xorg.xrandr}/bin/xrandr --output eDP1 --rotate right) 80 (sleep 2 && ${pkgs.xorg.xinput}/bin/xinput set-prop "pointer:Goodix Capacitive TouchScreen" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1) 81 ''; 82 }; 83}