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";