From e388626945519c0d5c728c84b95710b89430ccff Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 10 Nov 2019 16:04:33 +0100 Subject: Add sif --- sif/boot.nix | 26 ++++++++++++++++++++++++++ sif/hw.nix | 33 +++++++++++++++++++++++++++++++++ sif/wacom.conf | 15 +++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 sif/boot.nix create mode 100644 sif/hw.nix create mode 100644 sif/wacom.conf (limited to 'sif') 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 @@ +{ config, lib, pkgs, ... }: + +{ + boot = { + initrd = { + luks.devices = [ + { name = "nvm0"; device = "/dev/disk/by-uuid/fe641e81-0812-4181-a5f6-382ebba509bb"; } + { name = "nvm1"; device = "/dev/disk/by-uuid/43df1ba8-1728-4193-8855-920a82d4494a"; } + ]; + kernelModules = [ "dm-snapshot" ]; + availableKernelModules = [ "fbcon" "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + }; + }; + + + # Use the systemd-boot EFI boot loader. + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + timeout = null; + }; + + plymouth.enable = true; + + kernelParams = [ "intel_pstate=no_hwp" "quiet" ]; +} 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 @@ +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/f094bf06-66f9-40a8-9ab2-2b54d05223d2"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B3A2-D029"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/9e932072-3c56-4a9c-8da7-3163d2a8bf28"; + fsType = "btrfs"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/50f3f856-cc17-4614-846a-34a14d5006ec"; } + ]; + + nix.maxJobs = lib.mkDefault 12; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + # High-DPI console + i18n.consoleFont = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; + + hardware.cpu.intel.updateMicrocode = true; +} 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 @@ +Section "InputClass" + Identifier "Wacom USB device class" + MatchUSBID "056a:*" + MatchDevicePath "/dev/input/event*" + Driver "wacom" +EndSection + +Section "InputClass" + Identifier "calibration" + MatchProduct "Wacom USB device class" + Option "MinX" "58" + Option "MaxX" "30982" + Option "MinY" "87" + Option "MaxY" "17328" +EndSection \ No newline at end of file -- cgit v1.2.3