diff --git a/nixos/krops.nix b/nixos/krops.nix index 744bbbb..fe430b1 100644 --- a/nixos/krops.nix +++ b/nixos/krops.nix @@ -66,10 +66,14 @@ let }; in { - "${name}" = pkgs.writers.writeBashBin name '' - echo "deploy system" - ${system}/bin/system - ''; + "${name}" = { + type = "app"; + program = toString (pkgs.writers.writeBash name + '' + echo "deploy system" + ${system}/bin/system + ''); + }; }; desktop = { name, host }: @@ -92,12 +96,16 @@ let }; in { - "${name}" = pkgs.writers.writeBashBin "${name}-all" '' - echo "deploy network secerts" - ${network}/bin/secrets - echo "deploy system" - ${system}/bin/system - ''; + "${name}" = { + type = "app"; + program = toString (pkgs.writers.writeBash "${name}-all" + '' + echo "deploy network secerts" + ${network}/bin/secrets + echo "deploy system" + ${system}/bin/system + ''); + }; }; in