38 current 2024-04-18 09:17:02 23.11.20240405.72da83d 6.1.84 *
This commit is contained in:
parent
9232d199ab
commit
b6fd6c64e7
@ -43,6 +43,9 @@ in {
|
||||
sourceDirectories = ["${config.xdg.userDirs.extraConfig.XDG_WORKSPACES_DIR}"];
|
||||
repositories = [repo];
|
||||
excludeHomeManagerSymlinks = true;
|
||||
extraConfig = {
|
||||
archive_name_format = "{hostname}-workspaces-{now}";
|
||||
};
|
||||
};
|
||||
retention = {
|
||||
keepDaily = 7;
|
||||
@ -65,6 +68,9 @@ in {
|
||||
];
|
||||
repositories = [repo];
|
||||
excludeHomeManagerSymlinks = true;
|
||||
extraConfig = {
|
||||
archive_name_format = "{hostname}-media-{now}";
|
||||
};
|
||||
};
|
||||
retention = {
|
||||
keepDaily = 7;
|
||||
@ -84,6 +90,9 @@ in {
|
||||
];
|
||||
repositories = [repo];
|
||||
excludeHomeManagerSymlinks = true;
|
||||
extraConfig = {
|
||||
archive_name_format = "{hostname}-var-{now}";
|
||||
};
|
||||
};
|
||||
retention = {
|
||||
keepDaily = 7;
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
sudo nixos-rebuild switch --flake . &>nixos-switch.log || (
|
||||
${pkgs.coreutils-full}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
|
||||
gen=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)
|
||||
${pkgs.git}/bin/git commit -am "$gen"
|
||||
${pkgs.git}/bin/git commit --no-gpg-sign -am "$gen"
|
||||
popd
|
||||
'';
|
||||
in {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user