From 4b0b8d385062c7642e8763a73530bc5f3b02a303 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 11 May 2026 12:50:04 +0200 Subject: Added encryption configuration to the system config --- system/encryption.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 system/encryption.nix (limited to 'system/encryption.nix') diff --git a/system/encryption.nix b/system/encryption.nix new file mode 100644 index 0000000..152d657 --- /dev/null +++ b/system/encryption.nix @@ -0,0 +1,17 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + cryptsetup + ]; + + environment.etc."crypttab" = { + text = '' + ssh-keys UUID=da31e270-80d4-4a89-9633-87dd4d736ca2 none noauto,x-systemd.device-timeout=0 + ''; + }; + + fileSystems."/mnt/ssh-keys" = { + device = "/dev/mapper/ssh-keys"; + fsType = "ext4"; + options = ["noauto" "nofail" "x-systemd.automount" "x-systemd.idle-timeout=300"]; + }; +} -- cgit v1.2.3