From 7e4be650767941369787164ded82d90aed2f8f57 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 00:37:43 +0200 Subject: nanopi: use flake to auto-upgrade --- system/nanopi.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/nanopi.nix b/system/nanopi.nix index 7bfe51f0..f750f424 100755 --- a/system/nanopi.nix +++ b/system/nanopi.nix @@ -619,12 +619,18 @@ in enable = false; dates = "04:15"; randomizedDelaySec = "59 min"; - channel = "https://nixos.org/channels/nixos-unstable-small"; + flake = "https://git.alanpearce.eu/nixfiles"; allowReboot = true; rebootWindow = { lower = "01:00"; - upper = "05:00"; + upper = "06:00"; }; + flags = [ + "--no-write-lock-file" + "--override-input" + "nixpkgs" + "github:NixOS/nixpkgs/nixos-unstable-small" + ]; }; services.miniupnpd = { -- cgit 1.4.1