Remove autoupgrade service

This commit is contained in:
Chris Dombroski 2024-04-24 22:02:53 -04:00 committed by Chris Dombroski
parent bc2795f4c3
commit 8f9fcb81ae

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 = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"discord"