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