1
0
Fork 0
nixos-config/system/server.nix
Malte Brandy a1bb4277b1
Reformat
2019-07-31 23:56:52 +02:00

23 lines
578 B
Nix

{ config, pkgs, lib, ... }: {
imports = [ ./init_ssh.nix ];
config = {
systemd.services."system-maintenance" = {
startAt = "2:45";
environment.NIX_PATH =
"/etc/nix-path:nixos-config=/etc/nixos/configuration.nix";
path = [ pkgs.git ];
restartIfChanged = false;
unitConfig.X-StopOnRemoval = false;
serviceConfig = {
Type = "oneshot";
ExecStart = "${
(import ./update-lib.nix
config.system.build.nixos-rebuild).system-maintenance
}/bin/system-maintenance";
};
};
};
}