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

28 lines
708 B
Nix
Raw Normal View History

2023-11-26 08:01:26 +00:00
{ lib, pkgs, ... }:
2020-08-23 23:31:28 +00:00
{
boot = {
2022-09-17 18:59:21 +00:00
kernelParams = [ "fbcon=rotate:1" ];
2023-11-26 08:01:26 +00:00
kernelPackages = pkgs.linuxPackages_testing;
2023-06-06 00:51:11 +00:00
tmp.cleanOnBoot = true;
2023-11-26 08:01:26 +00:00
initrd.systemd.enable = true;
2023-09-18 06:16:42 +00:00
};
2020-08-23 23:31:28 +00:00
2023-09-18 06:16:42 +00:00
swapDevices = lib.mkForce [{
device = "/dev/disk/by-uuid/addae2e4-d7d7-4fcd-b2cb-7635c794d652";
encrypted = {
2023-09-18 06:16:42 +00:00
enable = true;
label = "swap";
blkDev = "/dev/disk/by-uuid/e5381f7c-fb90-4762-8a27-aa05429893e7";
keyFile = "/sysroot/var/lib/private/swap_key";
2020-08-23 23:31:28 +00:00
};
2023-09-18 06:16:42 +00:00
}];
2023-10-18 19:54:46 +00:00
fileSystems."/media/µsd".encrypted = {
enable = true;
label = "microsd";
blkDev = "/dev/disk/by-uuid/51ed9e97-06cf-4c54-a71a-c182bb0ced9e";
keyFile = "/sysroot/var/lib/private/µsd_key";
};
2020-08-23 23:31:28 +00:00
}