2023-12-26 10:29:20 +00:00
|
|
|
{ pkgs, ... }: {
|
2023-06-22 09:13:05 +01:00
|
|
|
# Setup keyfile
|
2023-08-03 21:26:48 +01:00
|
|
|
boot.initrd.secrets = { "/crypto_keyfile.bin" = null; };
|
2023-06-22 09:13:05 +01:00
|
|
|
|
|
|
|
# Enable swap on luks
|
2023-08-03 21:26:48 +01: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
|
|
|
|
'';
|
2023-12-26 10:29:20 +00:00
|
|
|
systemPackages = with pkgs; [ openfortivpn samba nomachine-client ];
|
2023-10-09 11:40:25 +01:00
|
|
|
};
|
2023-06-22 09:13:05 +01:00
|
|
|
}
|