From af81838b944ac5dc8daa127a644ec75195f6e7cc Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 17 Jun 2022 08:52:34 +0200 Subject: [PATCH] fix krops flake issues --- nixos/krops.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) 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