Add weekly-rebuild timer
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m37s
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m37s
This commit is contained in:
parent
4678f25670
commit
c4e1026d5e
@ -1,8 +1,11 @@
|
||||
{ ... }: {
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./sops.nix
|
||||
./root-user.nix
|
||||
./sshd.nix
|
||||
./monitoring.nix
|
||||
./packages.nix
|
||||
./root-user.nix
|
||||
./sops.nix
|
||||
./sshd.nix
|
||||
./weekly-rebuild.nix
|
||||
];
|
||||
}
|
||||
|
6
system/packages.nix
Normal file
6
system/packages.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.git
|
||||
];
|
||||
}
|
17
system/weekly-rebuild.nix
Normal file
17
system/weekly-rebuild.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.services."weekly-rebuild" = {
|
||||
path = [ pkgs.git ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild boot --flake git+https://git.t-juice.club/torjus/nixos-servers";
|
||||
};
|
||||
};
|
||||
systemd.timers."weekly-rebuild" = {
|
||||
enable = true;
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "Sun 06:00:00";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user