mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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
|
let
|
||||||
inherit (value) conflictingService;
|
inherit (value) conflictingService;
|
||||||
inherit (value.restoreCommand) preRestore postRestore;
|
inherit (value.restoreCommand) preRestore postRestore;
|
||||||
hasconflictingService = conflictingService != null;
|
hasConflictingService = conflictingService != null;
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
${lib.optionalString hasconflictingService "systemctl stop ${conflictingService}"}
|
${lib.optionalString hasConflictingService "systemctl stop ${conflictingService}"}
|
||||||
${preRestore}
|
${preRestore}
|
||||||
restic-${name} restore latest --target /
|
restic-${name} restore latest --target /
|
||||||
${postRestore}
|
${postRestore}
|
||||||
${lib.optionalString hasconflictingService "systemctl start ${conflictingService}"}
|
${lib.optionalString hasConflictingService "systemctl start ${conflictingService}"}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue