34 lines
865 B
Nix
34 lines
865 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
boot = {
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
kernel.sysctl."vm.swappiness" = 5;
|
|
cleanTmpDir = true;
|
|
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
initrd = {
|
|
availableKernelModules = [ "battery" ]; # wat
|
|
luks.devices."${config.networking.hostName}" = {
|
|
name = config.networking.hostName;
|
|
device = "/dev/disk/by-uuid/9df93bae-80b9-48c2-be43-b73994afda5b";
|
|
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/uhk.nix { })
|
|
];
|
|
}
|