aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-05-11 13:03:49 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-05-11 13:03:49 +0200
commit0bfa1edc43b9d25b213dc8fc02ae9218b68717d0 (patch)
treec339574994e0bfd9a92a3c307916bc72746c2c94
parent9c18db7afd3afccc30f781b66d173e957c3ad0cf (diff)
Escaped the service name properly
-rw-r--r--system/encryption.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/encryption.nix b/system/encryption.nix
index d8836d0..845264f 100644
--- a/system/encryption.nix
+++ b/system/encryption.nix
@@ -15,14 +15,14 @@
environment.systemPackages = with pkgs; [
cryptsetup
(writeShellScriptBin "keys-mount" ''
- sudo systemctl start systemd-cryptsetup@ssh\x2dkeys.service
+ sudo systemctl start systemd-cryptsetup@ssh\\x2dkeys.service
sudo mount /mnt/ssh-keys
ssh-add /mnt/ssh-keys/id_ed25519
'')
(writeShellScriptBin "keys-umount" ''
ssh-add -d /mnt/ssh-keys/id_ed25519
sudo umount /mnt/ssh-keys
- sudo systemctl stop systemd-cryptsetup@ssh\x2dkeys.service
+ sudo systemctl stop systemd-cryptsetup@ssh\\x2dkeys.service
'')
];
}