zfsunlock nitpick

This commit is contained in:
Motiejus Jakštys 2023-08-09 14:24:22 +03:00
parent 9fecb7ab4e
commit 3e66f95668
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: let }: let
unlock = { mkUnlock = {
sshEndpoint, sshEndpoint,
pingEndpoint, pingEndpoint,
remotePubkey, remotePubkey,
@ -56,7 +56,7 @@ in {
name: cfg: name: cfg:
lib.nameValuePair "zfsunlock-${name}" { lib.nameValuePair "zfsunlock-${name}" {
description = "zfsunlock service for ${name}"; description = "zfsunlock service for ${name}";
script = unlock (builtins.removeAttrs cfg ["startAt"]); script = mkUnlock (builtins.removeAttrs cfg ["startAt"]);
serviceConfig = { serviceConfig = {
User = "root"; User = "root";
ProtectSystem = "strict"; ProtectSystem = "strict";