1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/lib: use new systemd.watchdog option

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2021-01-22 13:27:00 -05:00
parent a79c662c7d
commit 3d8b5366a5
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
3 changed files with 3 additions and 10 deletions

View file

@ -96,6 +96,9 @@ in {
stateVersion = "20.03"; # Did you read the comment?
};
# Make systemd manage the hardware watchdog.
systemd.watchdog.runtimeTime = "60s";
users = {
# Force declarative user configuration.
mutableUsers = false;

View file

@ -68,11 +68,6 @@ in {
};
};
# Make systemd manage the hardware watchdog.
systemd.extraConfig = ''
RuntimeWatchdogSec=60s
'';
# Packages specific to this machine. The base package set is defined in
# lib/system.nix.
environment.systemPackages = with pkgs; [

View file

@ -132,11 +132,6 @@ in {
zfs.autoScrub.enable = true;
};
# Make systemd manage the hardware watchdog.
systemd.extraConfig = ''
RuntimeWatchdogSec=60s
'';
virtualisation.libvirtd.enable = true;
# root SSH key for remote builds.