nixos-config/system/starlight/boot-config.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2020-04-11 21:47:33 +00:00
{ config, pkgs, ... }:
{
imports = [ ../../externals/systemd-boot-secure ];
2020-04-11 21:47:33 +00:00
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.swappiness" = 5;
cleanTmpDir = true;
2020-05-13 01:19:30 +00:00
loader.systemd-boot-secure = {
enable = true;
signed = true;
signing-key = "/root/secure-boot/db.key";
signing-certificate = "/root/secure-boot/db.crt";
};
2020-04-11 21:47:33 +00:00
initrd.luks = {
reusePassphrases = true;
devices = {
2020-04-27 23:19:31 +00:00
"${config.networking.hostName}" = {
2020-04-11 21:47:33 +00:00
device = "/dev/disk/by-uuid/274ec302-20b7-43bf-aa72-895ffdd96919";
preLVM = true;
allowDiscards = true;
};
glimmer = {
preLVM = true;
allowDiscards = true;
};
2020-04-11 21:47:33 +00:00
};
};
};
services.udev = {
packages = [
pkgs.android-udev-rules
pkgs.openocd
2020-08-15 03:27:08 +00:00
(pkgs.callPackage ../../externals/rules/adafruit.nix { })
(pkgs.callPackage ../../externals/rules/ds4drv.nix { })
(pkgs.callPackage ../../externals/rules/fpga.nix { })
(pkgs.callPackage ../../externals/rules/limesuite.nix { })
(pkgs.callPackage ../../externals/rules/cm-rgb.nix { })
(pkgs.callPackage ../../externals/rules/uhk.nix { })
2020-04-11 21:47:33 +00:00
];
};
}