2024-03-22 10:08:58 +00:00
|
|
|
{pkgs, ...}: {
|
2023-06-22 09:13:05 +01:00
|
|
|
# Setup keyfile
|
2024-01-30 14:21:50 +00:00
|
|
|
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
|
2023-06-22 09:13:05 +01:00
|
|
|
|
|
|
|
# Enable swap on luks
|
2024-01-30 14:21:50 +00:00
|
|
|
boot.initrd.luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd".device = "/dev/disk/by-uuid/761eeb11-3091-4142-9232-4fb33165eccd";
|
|
|
|
boot.initrd.luks.devices."luks-761eeb11-3091-4142-9232-4fb33165eccd".keyFile = "/crypto_keyfile.bin";
|
2023-06-22 09:13:05 +01:00
|
|
|
|
2023-10-09 11:40:25 +01:00
|
|
|
environment = {
|
|
|
|
etc."ppp/options".text = ''
|
|
|
|
ipcp-accept-remote
|
|
|
|
'';
|
2024-04-03 17:00:54 +01:00
|
|
|
systemPackages = with pkgs; [openfortivpn samba];
|
2023-10-09 11:40:25 +01:00
|
|
|
};
|
2024-02-27 16:04:23 +00:00
|
|
|
services.ollama.enable = true;
|
2023-06-22 09:13:05 +01:00
|
|
|
}
|