Remove autoupgrade service

This commit is contained in:
Chris Dombroski 2024-04-24 22:02:53 -04:00
parent a4d82d41a3
commit 76e06c3f36

View file

@ -75,32 +75,6 @@
# '') # '')
]; ];
systemd.user = {
services = {
autoupgrade = {
Service = {
WorkingDirectory = "/home/cdombroski/work/nix-configs";
Type = "oneshot";
ExecStart = "${pkgs.writeShellScript "upgrade-system" ''
${pkgs.nix}/bin/nix flake update
${pkgs.git}/bin/git add .
${pkgs.git}/bin/git commit -m "update flake"
${pkgs.git}/bin/git push
${pkgs.deploy-rs}/bin/deploy
''}";
};
};
};
timers = {
autoupgrade = {
Timer = {
OnCalendar = "daily";
};
Install.WantedBy = [ "timers.target" ];
};
};
};
nixpkgs.config = { nixpkgs.config = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"discord" "discord"