Home Manager : Better backup.
This commit is contained in:
parent
51fa0a5366
commit
9e9a6e6ee6
|
@ -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"}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue