2020-04-11 21:47:33 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot = {
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
kernel.sysctl."vm.swappiness" = 5;
|
|
|
|
cleanTmpDir = true;
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.udev = {
|
|
|
|
packages = [
|
|
|
|
pkgs.android-udev-rules
|
|
|
|
pkgs.openocd
|
|
|
|
(pkgs.callPackage ./externals/rules/adafruit.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 { })
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|