all: let system.autoUpgrade.enable be set individidually

This commit is contained in:
Aaron Bieber 2023-04-19 07:20:51 -06:00
parent e3853f4998
commit 94d3f9ba16
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -86,7 +86,7 @@
, reform, gostart, xintray, tsvnstat, pots, po, tsRevProx, darwin , reform, gostart, xintray, tsvnstat, pots, po, tsRevProx, darwin
, xin-secrets, talon, peerix, ... }@inputs: , xin-secrets, talon, peerix, ... }@inputs:
let let
xinlib = import ./lib; xinlib = import ./lib { inherit (unstable) lib; };
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
#[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; #[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = unstable.lib.genAttrs supportedSystems; forAllSystems = unstable.lib.genAttrs supportedSystems;

View File

@ -1,3 +1,4 @@
{ lib, ... }:
let let
mkCronScript = name: src: '' mkCronScript = name: src: ''
. /etc/profile; . /etc/profile;
@ -49,7 +50,7 @@ let
let state = self.rev or "DIRTY"; let state = self.rev or "DIRTY";
in { in {
system.configurationRevision = state; system.configurationRevision = state;
system.autoUpgrade.enable = state != "DIRTY"; system.autoUpgrade.enable = lib.mkDefault (state != "DIRTY");
}; };
xinlib = { xinlib = {