From 1fc1c7f85cbabc53d7ad6d49357f17a4f8594d4c Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 26 Aug 2022 07:56:20 -0600 Subject: [PATCH] all: run update checks every 3 hours. Allow some hosts to reboot if needed and install the known hosts entry for xin-secrets-ro --- default.nix | 8 ++++++-- hosts/box/default.nix | 1 + hosts/faf/default.nix | 1 + hosts/weather/default.nix | 1 + system/update.nix | 1 + 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index a5940c6..8e39313 100644 --- a/default.nix +++ b/default.nix @@ -133,8 +133,12 @@ in { zsh.enable = true; gnupg.agent.enable = true; ssh = { - knownHosts."[namish.humpback-trout.ts.net]:2222".publicKey = - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF9jlU5XATs8N90mXuCqrflwOJ+s3s7LefDmFZBx8cCk"; + knownHosts = { + "[namish.humpback-trout.ts.net]:2222".publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF9jlU5XATs8N90mXuCqrflwOJ+s3s7LefDmFZBx8cCk"; + "[git.tapenet.org]:2222".publicKey = + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOkbSJWeWJyJjak/boaMTqzPVq91wfJz1P+I4rnBUsPW"; + }; startAgent = true; extraConfig = ""; }; diff --git a/hosts/box/default.nix b/hosts/box/default.nix index 5827497..c13ab30 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -735,6 +735,7 @@ in { programs.zsh.enable = true; + system.autoUpgrade.allowReboot = true; system.stateVersion = "20.03"; } diff --git a/hosts/faf/default.nix b/hosts/faf/default.nix index 6b977c2..cb3bc4e 100644 --- a/hosts/faf/default.nix +++ b/hosts/faf/default.nix @@ -107,6 +107,7 @@ in { }; }; + system.autoUpgrade.allowReboot = true; system.stateVersion = "21.11"; # Did you read the comment? } diff --git a/hosts/weather/default.nix b/hosts/weather/default.nix index ab9d171..b3003f8 100644 --- a/hosts/weather/default.nix +++ b/hosts/weather/default.nix @@ -193,5 +193,6 @@ in { nix-top ]; + system.autoUpgrade.allowReboot = true; system.stateVersion = "21.11"; } diff --git a/system/update.nix b/system/update.nix index adc1056..7bb5168 100644 --- a/system/update.nix +++ b/system/update.nix @@ -17,6 +17,7 @@ with lib; { enable = true; allowReboot = false; flake = "github:qbit/xin"; + dates = "*-*-* *:03:00"; }; }) {