From 3df46664a441da400941ad63542b0399afa9f3d1 Mon Sep 17 00:00:00 2001 From: Lach Date: Sun, 02 Mar 2025 06:48:50 +0000 Subject: [PATCH] fix: generator should be an unique functionTo --- --- a/modules/secrets.nix +++ b/modules/secrets.nix @@ -4,7 +4,7 @@ ... }: let inherit (lib.options) mkOption literalExpression; - inherit (lib.types) unspecified nullOr listOf str bool attrsOf submodule functionTo package; + inherit (lib.types) unspecified nullOr listOf str bool attrsOf submodule functionTo package unique; inherit (lib.strings) concatStringsSep; inherit (lib.attrsets) mapAttrs; @@ -41,7 +41,7 @@ ''; }; generator = mkOption { - type = nullOr (functionTo package); + type = nullOr (unique (functionTo package)); description = '' Function evaluating to nix derivation responsible for (re)generating the secret's content. -- gitstuff