blob: c8d7aa2dbef83f348443df4ea285251c4f4a7f3e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{ modulesPath, config, lib, pkgs, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../modules/common.nix
../modules/reusable/battery.nix
../modules/xserver.nix
../modules/fonts.nix
../modules/sound.nix
../modules/tvl.nix
../modules/development.nix
];
networking.hostName = "yeren";
system.stateVersion = "21.03";
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
kernelModules = [ ];
luks.devices = {
"cryptroot".device = "/dev/disk/by-uuid/dcfbc22d-e0d2-411b-8dd3-96704d3aae2e";
"cryptswap".device = "/dev/disk/by-uuid/48b8a8fd-559c-4759-a617-56f221cfaaec";
};
};
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
kernelParams = [
"i915.preliminary_hw_support=1"
"i915.enable_rc6=0"
"i915.enable_psr=0"
];
};
fileSystems = {
"/" = {
device = "/dev/mapper/cryptroot";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/53A9-248B";
fsType = "vfat";
};
};
swapDevices = [{ device = "/dev/mapper/cryptswap"; }];
services.xserver = {
exportConfiguration = true;
extraConfig = ''
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TripleBuffer" "true"
Option "TearFree" "true"
Option "DRI" "true"
Option "AccelMethod" "sna"
EndSection
'';
};
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
services.fprintd = {
enable = true;
package = config.depot.users.glittershark.pkgs.fprintd;
};
security.pam.services = {
login.fprintAuth = true;
sudo.fprintAuth = true;
i3lock.fprintAuth = false;
i3lock-color.fprintAuth = false;
lightdm.fprintAuth = true;
lightdm-greeter.fprintAuth = true;
};
}
|