From 074d240595eeaf2c232b8ba3c4f3343988c9411b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 1 Jun 2026 00:45:54 +0900 Subject: [PATCH] base: tag generation as `auto` if built by auto upgrade service --- base/default.nix | 4 ++++ base/services/auto-upgrade.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/base/default.nix b/base/default.nix index f7f80d1..e81d6c1 100644 --- a/base/default.nix +++ b/base/default.nix @@ -46,6 +46,10 @@ system.nixos.tags = lib.optionals (inputs.self.sourceInfo ? dirtyRev) [ "dirty" ]; + specialisation."auto-upgrade".configuration = { + system.nixos.tags = [ "auto" ]; + }; + boot.tmp.cleanOnBoot = lib.mkDefault true; boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; diff --git a/base/services/auto-upgrade.nix b/base/services/auto-upgrade.nix index 8b003e8..ca84fc0 100644 --- a/base/services/auto-upgrade.nix +++ b/base/services/auto-upgrade.nix @@ -13,6 +13,7 @@ in "--refresh" "--no-write-lock-file" + "--specialisation auto-upgrade" # --update-input is deprecated since nix 2.22, and removed in lix 2.90 # as such we instead use --override-input combined with --refresh # https://git.lix.systems/lix-project/lix/issues/400