Update git-auto-update.nix
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user