diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-10 16:04:33 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-11-10 16:04:33 +0100 |
commit | e388626945519c0d5c728c84b95710b89430ccff (patch) | |
tree | fba659bb75fea1710d12f0689a8d512c9eb222e2 /sif | |
parent | 61680466c6a8e476bd3c8a362454ba59907eb4d3 (diff) | |
download | nixos-e388626945519c0d5c728c84b95710b89430ccff.tar nixos-e388626945519c0d5c728c84b95710b89430ccff.tar.gz nixos-e388626945519c0d5c728c84b95710b89430ccff.tar.bz2 nixos-e388626945519c0d5c728c84b95710b89430ccff.tar.xz nixos-e388626945519c0d5c728c84b95710b89430ccff.zip |
Add sif
Diffstat (limited to 'sif')
-rw-r--r-- | sif/boot.nix | 26 | ||||
-rw-r--r-- | sif/hw.nix | 33 | ||||
-rw-r--r-- | sif/wacom.conf | 15 |
3 files changed, 74 insertions, 0 deletions
diff --git a/sif/boot.nix b/sif/boot.nix new file mode 100644 index 00000000..00d42b99 --- /dev/null +++ b/sif/boot.nix | |||
@@ -0,0 +1,26 @@ | |||
1 | { config, lib, pkgs, ... }: | ||
2 | |||
3 | { | ||
4 | boot = { | ||
5 | initrd = { | ||
6 | luks.devices = [ | ||
7 | { name = "nvm0"; device = "/dev/disk/by-uuid/fe641e81-0812-4181-a5f6-382ebba509bb"; } | ||
8 | { name = "nvm1"; device = "/dev/disk/by-uuid/43df1ba8-1728-4193-8855-920a82d4494a"; } | ||
9 | ]; | ||
10 | kernelModules = [ "dm-snapshot" ]; | ||
11 | availableKernelModules = [ "fbcon" "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; | ||
12 | }; | ||
13 | }; | ||
14 | |||
15 | |||
16 | # Use the systemd-boot EFI boot loader. | ||
17 | loader = { | ||
18 | systemd-boot.enable = true; | ||
19 | efi.canTouchEfiVariables = true; | ||
20 | timeout = null; | ||
21 | }; | ||
22 | |||
23 | plymouth.enable = true; | ||
24 | |||
25 | kernelParams = [ "intel_pstate=no_hwp" "quiet" ]; | ||
26 | } | ||
diff --git a/sif/hw.nix b/sif/hw.nix new file mode 100644 index 00000000..17293c90 --- /dev/null +++ b/sif/hw.nix | |||
@@ -0,0 +1,33 @@ | |||
1 | { config, lib, pkgs, ... }: | ||
2 | |||
3 | { | ||
4 | imports = | ||
5 | [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | ||
6 | ]; | ||
7 | |||
8 | fileSystems."/" = | ||
9 | { device = "/dev/disk/by-uuid/f094bf06-66f9-40a8-9ab2-2b54d05223d2"; | ||
10 | fsType = "btrfs"; | ||
11 | }; | ||
12 | |||
13 | fileSystems."/boot" = | ||
14 | { device = "/dev/disk/by-uuid/B3A2-D029"; | ||
15 | fsType = "vfat"; | ||
16 | }; | ||
17 | |||
18 | fileSystems."/home" = | ||
19 | { device = "/dev/disk/by-uuid/9e932072-3c56-4a9c-8da7-3163d2a8bf28"; | ||
20 | fsType = "btrfs"; | ||
21 | }; | ||
22 | |||
23 | swapDevices = | ||
24 | [ { device = "/dev/disk/by-uuid/50f3f856-cc17-4614-846a-34a14d5006ec"; } | ||
25 | ]; | ||
26 | |||
27 | nix.maxJobs = lib.mkDefault 12; | ||
28 | powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; | ||
29 | # High-DPI console | ||
30 | i18n.consoleFont = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; | ||
31 | |||
32 | hardware.cpu.intel.updateMicrocode = true; | ||
33 | } | ||
diff --git a/sif/wacom.conf b/sif/wacom.conf new file mode 100644 index 00000000..864409f1 --- /dev/null +++ b/sif/wacom.conf | |||
@@ -0,0 +1,15 @@ | |||
1 | Section "InputClass" | ||
2 | Identifier "Wacom USB device class" | ||
3 | MatchUSBID "056a:*" | ||
4 | MatchDevicePath "/dev/input/event*" | ||
5 | Driver "wacom" | ||
6 | EndSection | ||
7 | |||
8 | Section "InputClass" | ||
9 | Identifier "calibration" | ||
10 | MatchProduct "Wacom USB device class" | ||
11 | Option "MinX" "58" | ||
12 | Option "MaxX" "30982" | ||
13 | Option "MinY" "87" | ||
14 | Option "MaxY" "17328" | ||
15 | EndSection \ No newline at end of file | ||