summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-05-12 00:37:43 +0200
committerAlan Pearce2024-05-12 00:37:43 +0200
commit7e4be650767941369787164ded82d90aed2f8f57 (patch)
tree9dc43ee384801f2c4c834aef8619d96a10226622 /system
parent1b0f3a6760eab3e634a62a008fee2323e1be291b (diff)
downloadnixfiles-7e4be650767941369787164ded82d90aed2f8f57.tar.lz
nixfiles-7e4be650767941369787164ded82d90aed2f8f57.tar.zst
nixfiles-7e4be650767941369787164ded82d90aed2f8f57.zip
nanopi: use flake to auto-upgrade
Diffstat (limited to 'system')
-rwxr-xr-xsystem/nanopi.nix10
1 files changed, 8 insertions, 2 deletions
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 = {