Update git-auto-update.nix

This commit is contained in:
ska
2025-12-26 00:28:53 +00:00
parent 47f305768d
commit 309edaa2e2

View File

@@ -1,11 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
######################################## environment.etc."nix-git-auto-update.sh" = {
# NixOS Git Auto Update Script
########################################
environment.etc."nixos-git-update.sh" = {
mode = "0700"; mode = "0700";
text = '' text = ''
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
@@ -37,9 +33,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 +47,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";