nitpicking
This commit is contained in:
parent
583f74cf3f
commit
5721531486
@ -45,14 +45,14 @@ in {
|
|||||||
|
|
||||||
config = with config.mj.base.zfsborg;
|
config = with config.mj.base.zfsborg;
|
||||||
lib.mkIf enable {
|
lib.mkIf enable {
|
||||||
systemd.services."zfsborg-snapshot-dirs" = let
|
systemd.services."zfsborg-snapshot-dirs" = {
|
||||||
mountpoints = lib.unique (lib.catAttrs "mountpoint" dirs);
|
|
||||||
in {
|
|
||||||
description = "zfsborg prepare snapshot directories";
|
description = "zfsborg prepare snapshot directories";
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart =
|
ExecStart = let
|
||||||
|
mountpoints = lib.unique (lib.catAttrs "mountpoint" dirs);
|
||||||
|
in
|
||||||
builtins.map
|
builtins.map
|
||||||
(d: "${pkgs.coreutils}/bin/mkdir -p ${d}/.snapshot-latest")
|
(d: "${pkgs.coreutils}/bin/mkdir -p ${d}/.snapshot-latest")
|
||||||
mountpoints;
|
mountpoints;
|
||||||
|
Loading…
Reference in New Issue
Block a user