nixos/backup/tsm: use lib.getExe'
for service command line
This commit is contained in:
parent
cec6d7f51a
commit
d5f337809e
@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
|
|
||||||
inherit (lib.attrsets) hasAttr;
|
inherit (lib.attrsets) hasAttr;
|
||||||
|
inherit (lib.meta) getExe';
|
||||||
inherit (lib.modules) mkDefault mkIf;
|
inherit (lib.modules) mkDefault mkIf;
|
||||||
inherit (lib.options) mkEnableOption mkOption;
|
inherit (lib.options) mkEnableOption mkOption;
|
||||||
inherit (lib.types) nonEmptyStr nullOr;
|
inherit (lib.types) nonEmptyStr nullOr;
|
||||||
@ -94,7 +95,7 @@ in
|
|||||||
# The `-se` option must come after the command.
|
# The `-se` option must come after the command.
|
||||||
# The `-optfile` option suppresses a `dsm.opt`-not-found warning.
|
# The `-optfile` option suppresses a `dsm.opt`-not-found warning.
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${cfgPrg.wrappedPackage}/bin/dsmc ${cfg.command} -se='${cfg.servername}' -optfile=/dev/null";
|
"${getExe' cfgPrg.wrappedPackage "dsmc"} ${cfg.command} -se='${cfg.servername}' -optfile=/dev/null";
|
||||||
LogsDirectory = "tsm-backup";
|
LogsDirectory = "tsm-backup";
|
||||||
StateDirectory = "tsm-backup";
|
StateDirectory = "tsm-backup";
|
||||||
StateDirectoryMode = "0750";
|
StateDirectoryMode = "0750";
|
||||||
|
Loading…
Reference in New Issue
Block a user