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" ];
|
2024-01-16 04:36:28 +00:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
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
|
|
|
|
2024-03-02 03:13:17 +00:00
|
|
|
swapDevices = lib.mkForce [
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/addae2e4-d7d7-4fcd-b2cb-7635c794d652";
|
|
|
|
encrypted = {
|
|
|
|
enable = true;
|
|
|
|
label = "swap";
|
|
|
|
blkDev = "/dev/disk/by-uuid/e5381f7c-fb90-4762-8a27-aa05429893e7";
|
|
|
|
keyFile = "/sysroot/var/lib/private/swap_key";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-10-18 19:54:46 +00:00
|
|
|
|
2023-11-27 06:19:04 +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
|
|
|
}
|