nix-conf/modules/auto-update/default.nix

11 lines
521 B
Nix
Raw Normal View History

2023-10-12 17:47:24 +02:00
{ lib, pkgs, config, ... }:
2023-08-14 16:47:59 +02:00
{
system.autoUpgrade = {
enable = true;
randomizedDelaySec = "30min";
2023-10-12 17:47:24 +02:00
flake = if config.services.archisteamfarm.enable then "$(${pkgs.coreutils}/bin/rm -rf /var/lib/update-repo && ${lib.getExe pkgs.git} clone git@codeberg.org:jopejoe1/nix-conf.git /var/lib/update-repo -q --depth=1 && ${lib.getExe pkgs.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";
2023-08-14 16:47:59 +02:00
dates = "hourly";
};
}