This commit is contained in:
2025-10-04 12:19:30 +03:00
parent 90748fbe5a
commit 86e70d5fb1
2 changed files with 28 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
./packages.nix
./services.nix
./settings.nix
./systemd-routine.nix
./tty.nix
];
}
@@ -0,0 +1,27 @@
{
config,
xlib,
...
}:
{
systemd = {
services.nixos-auto-rebuild = {
description = "Auto rebuild NixOS config";
serviceConfig = {
Type = "oneshot";
User = "${xlib.devices.admin}";
WorkingDirectory = "/etc/nixos";
ExecStart = "gp-ns";
};
};
timers.nixos-auto-rebuild = {
description = "Run NixOS auto rebuild at 4am daily";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "*-*-* 04:00:00";
Persistent = true;
};
};
};
}