Remove autoupgrade service
This commit is contained in:
parent
bc2795f4c3
commit
8f9fcb81ae
1 changed files with 0 additions and 26 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue