nitpicking

This commit is contained in:
Motiejus Jakštys 2023-09-11 17:27:14 +03:00
parent 583f74cf3f
commit 5721531486

View File

@ -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;