Remove autoupgrade service
This commit is contained in:
parent
a4d82d41a3
commit
76e06c3f36
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 = {
|
nixpkgs.config = {
|
||||||
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"discord"
|
"discord"
|
||||||
|
|
Loading…
Reference in a new issue