Update git-auto-update.nix

This commit is contained in:
ska
2025-12-25 22:43:07 +00:00
parent 25adcbc180
commit 0f67998f6a

View File

@@ -2,10 +2,10 @@
{ {
######################################## ########################################
# NixOS Git Auto Update Script # NixOS Git Auto Update
######################################## ########################################
environment.etc."nixos-git-update.sh" = { environment.etc."nix-git-auto-update.sh" = {
mode = "0700"; mode = "0700";
text = '' text = ''
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
@@ -37,9 +37,9 @@
''; '';
}; };
systemd.services.nixos-git-update = { systemd.services.nix-git-auto-update = {
description = "Update NixOS from Git configuration"; description = "Automatically update NixOS from Git";
script = "/etc/nixos-git-update.sh"; script = "/etc/nix-git-auto-update.sh";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "root"; User = "root";
@@ -51,8 +51,8 @@
}; };
}; };
systemd.timers.nixos-git-update = { systemd.timers.nix-git-auto-update = {
description = "Periodic NixOS Git configuration check"; description = "Periodic NixOS Git update check";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnBootSec = "60s"; OnBootSec = "60s";