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