diff options
| author | tv <tv@krebsco.de> | 2026-11-12 17:20:53 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-12 17:20:53 +0000 |
| commit | 9359951b4470542049ceb63ad04b7526a4c6c9e8 (patch) | |
| tree | 8c0429be48b970ac038717021a05b45b218f4ed3 /lib | |
| parent | 1ecf303545d70da9b861b08874b71fd259ac4d3f (diff) | |
populate flake, flake-input: take the flake reference as url
Flake and flake-input sources take the flake reference as attribute url,
like git sources take their repository, and like inputs in flake.nix:
something.flake = "github:owner/something";
otherthing.flake = {
url = "github:owner/otherthing";
inputs.nixpkgs.follows = "nixpkgs";
};
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/types/populate.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/types/populate.nix b/lib/types/populate.nix index 6193a19..4523dad 100644 --- a/lib/types/populate.nix +++ b/lib/types/populate.nix @@ -34,7 +34,7 @@ flake = lib.mkOption { apply = x: if lib.types.str.check x - then { flake = x; } + then { url = x; } else x; default = null; type = lib.types.nullOr (lib.types.either lib.types.str source-types.flake); @@ -178,7 +178,7 @@ default = false; type = lib.types.bool; }; - flake = lib.mkOption { + url = lib.mkOption { type = lib.types.str; # TODO lib.types.flake-ref }; inputs = lib.mkOption { @@ -193,7 +193,7 @@ default = false; type = lib.types.bool; }; - flake = lib.mkOption { + url = lib.mkOption { type = lib.types.str; # TODO lib.types.flake-ref }; inputs = lib.mkOption { |
