2023-06-22 09:13:05 +01:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
2023-09-21 08:51:07 +01:00
|
|
|
|
{ lib, ... }: {
|
2023-06-22 09:13:05 +01:00
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# 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-06-22 09:27:39 +01:00
|
|
|
|
environment.etc."ppp/options".text = ''
|
|
|
|
|
ipcp-accept-remote
|
|
|
|
|
'';
|
2023-09-10 17:07:11 +01:00
|
|
|
|
services.syncthing.settings.folders = {
|
|
|
|
|
"Archive".enable = false;
|
|
|
|
|
"Books".enable = false;
|
|
|
|
|
"Comics".enable = false;
|
|
|
|
|
"Documents".enable = false;
|
|
|
|
|
"Exports".enable = false;
|
|
|
|
|
"Pictures".enable = false;
|
|
|
|
|
};
|
2023-06-22 09:13:05 +01:00
|
|
|
|
}
|