mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
restic: Fix typo in variable name
This commit is contained in:
parent
5da785c6ba
commit
0c5d4436ad
1 changed files with 3 additions and 3 deletions
|
|
@ -42,14 +42,14 @@ in
|
|||
let
|
||||
inherit (value) conflictingService;
|
||||
inherit (value.restoreCommand) preRestore postRestore;
|
||||
hasconflictingService = conflictingService != null;
|
||||
hasConflictingService = conflictingService != null;
|
||||
in
|
||||
''
|
||||
${lib.optionalString hasconflictingService "systemctl stop ${conflictingService}"}
|
||||
${lib.optionalString hasConflictingService "systemctl stop ${conflictingService}"}
|
||||
${preRestore}
|
||||
restic-${name} restore latest --target /
|
||||
${postRestore}
|
||||
${lib.optionalString hasconflictingService "systemctl start ${conflictingService}"}
|
||||
${lib.optionalString hasConflictingService "systemctl start ${conflictingService}"}
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue