From 309edaa2e2dbe1a9f7fd6795d7daa24398fac592 Mon Sep 17 00:00:00 2001 From: ska Date: Fri, 26 Dec 2025 00:28:53 +0000 Subject: [PATCH] Update git-auto-update.nix --- git-auto-update.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/git-auto-update.nix b/git-auto-update.nix index 44cfceb..53da1d2 100644 --- a/git-auto-update.nix +++ b/git-auto-update.nix @@ -1,11 +1,7 @@ { config, pkgs, ... }: { - ######################################## - # NixOS Git Auto Update Script - ######################################## - - environment.etc."nixos-git-update.sh" = { + environment.etc."nix-git-auto-update.sh" = { mode = "0700"; text = '' #!/run/current-system/sw/bin/bash @@ -37,9 +33,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 +47,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";