Home Manager : Better backup.

This commit is contained in:
Dmitry Voronin 2024-10-12 18:15:47 +03:00
parent 51fa0a5366
commit 9e9a6e6ee6
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -47,7 +47,9 @@ in
} }
) { } cfg.users; ) { } cfg.users;
backupFileExtension = "old"; backupFileExtension =
"backup-"
+ pkgs.lib.readFile "${pkgs.runCommand "timestamp" { } "echo -n date '+%Y%m%d%H%M%S' > $out"}";
}; };
}; };
} }