Only apply patches to nix conf if they are needed

This commit is contained in:
Johannes Jöns 2023-09-30 10:57:13 +02:00
parent 6eb65347a3
commit 598350bd83

View file

@ -1,10 +1,10 @@
{ pkgs, ... }: { pkgs, config, ... }:
{ {
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
randomizedDelaySec = "30min"; randomizedDelaySec = "30min";
flake = "$(${pkgs.coreutils}/bin/rm -rf /var/lib/update-repo && ${pkgs.git}/bin/git clone git@codeberg.org:jopejoe1/nix-conf.git /var/lib/update-repo -q && ${pkgs.git}/bin/git -C /var/lib/update-repo am /home/jopejoe1/.config/patches/0001-add-liscense.patch -q)/var/lib/update-repo"; flake = if config.services.archisteamfarm.enable then "$(${pkgs.coreutils}/bin/rm -rf /var/lib/update-repo && ${pkgs.git}/bin/git clone git@codeberg.org:jopejoe1/nix-conf.git /var/lib/update-repo -q && ${pkgs.git}/bin/git -C /var/lib/update-repo am /home/jopejoe1/.config/patches/0001-add-liscense.patch -q)/var/lib/update-repo" else "github:jopejoe1/nix-conf";
dates = "hourly"; dates = "hourly";
}; };
} }