Skip to content

Commit

Permalink
Rename and unformat
Browse files Browse the repository at this point in the history
  • Loading branch information
zmrocze authored and brainrake committed Mar 14, 2024
1 parent 275eaa5 commit a4888df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions effects/push-cache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,20 @@ in {
''Version of the cachix package to use on "x86_64-linux".'';
};
caches = lib.mkOption {
description =
"\n An attribute set, each `name: value` pair translates to an effect under\n onPush.default.outputs.effects.push-cache-effect.name\n ";
example =
"\n {\n our-cachix = {\n type = \"cachix\";\n secretName = \"our-cachix-token\";\n branches = [ \"master\" ];\n packages = [ pkgs.hello ];\n };\n }\n ";
description = ''
An attribute set, each `name: value` pair translates to
an effect under `onPush.default.outputs.effects.push-cache-effect.name`.
'';
example = ''
{
our-cachix = {
type = \"cachix\";
secretName = \"our-cachix-token\";
branches = [ \"master\" ];
packages = [ pkgs.hello ];
};
}
'';
type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: {
options = {
name = lib.mkOption {
Expand Down
2 changes: 1 addition & 1 deletion flake-public-outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

flakeModule = ./flake-module.nix;

push-cache-module = ./effects/push-cache;
push-cache-effect = ./effects/push-cache;

lib.withPkgs = pkgs:
let effects = import ./effects/default.nix effects pkgs;
Expand Down

0 comments on commit a4888df

Please sign in to comment.