Unverified Commit 217dd89e authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #276818 from SuperSandro2000/variables-allow-int

nixos/shells-environment: allow int and float in environment variables
parents 89cd26ca c5371710
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -42,8 +42,8 @@ in
        strings.  The latter is concatenated, interspersed with colon
        characters.
      '';
      type = with types; attrsOf (oneOf [ (listOf str) str path ]);
      apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else "${v}");
      type = with types; attrsOf (oneOf [ (listOf (oneOf [ float int str ])) float int str path ]);
      apply = mapAttrs (n: v: if isList v then concatMapStringsSep ":" toString v else toString v);
    };

    environment.profiles = mkOption {