diff --git a/modules/flake-parts/apps.deploy-/darwin.nix b/modules/flake-parts/apps.deploy-/darwin.nix index c9a093f..481331e 100644 --- a/modules/flake-parts/apps.deploy-/darwin.nix +++ b/modules/flake-parts/apps.deploy-/darwin.nix @@ -1,4 +1,4 @@ -# populates apps.{system}.git-deploy-... for all darwin hosts +# populates apps.{system}.deploy-... for all darwin hosts { self, lib, ... }: { perSystem = @@ -10,7 +10,7 @@ hostName, deployUser, }: - pkgs.writeShellScript "git-deploy-${hostName}" '' + pkgs.writeShellScript "deploy-${hostName}" '' set -Eeo pipefail export PATH="${ lib.makeBinPath ( @@ -38,7 +38,7 @@ mkDarwinDeployApp = attrName: config: - lib.nameValuePair "git-deploy-${attrName}" { + lib.nameValuePair "deploy-${attrName}" { type = "app"; program = builtins.toString (mkDarwinDeploy { inherit attrName; @@ -50,10 +50,10 @@ in { config.apps = individual // { - git-deploy-darwin-all = { + deploy-darwin-all = { type = "app"; program = builtins.toString ( - pkgs.writeShellScript "git-deploy-all" ( + pkgs.writeShellScript "deploy-all" ( builtins.concatStringsSep "\n" ( lib.mapAttrsToList (name: value: '' echo \# ${name}: running ${value.program} ''${@} diff --git a/modules/flake-parts/apps.deploy-/linux.nix b/modules/flake-parts/apps.deploy-/linux.nix index da4ac6a..e3e6fa8 100644 --- a/modules/flake-parts/apps.deploy-/linux.nix +++ b/modules/flake-parts/apps.deploy-/linux.nix @@ -1,11 +1,11 @@ -# populates apps.{system}.git-deploy-... for all linux hosts +# populates apps.{system}.deploy-... for all linux hosts { self, lib, ... }: { perSystem = { pkgs, ... }: let - prefix = "git-deploy-"; - prefixDirect = "git-deploy-direct"; + prefix = "deploy-"; + prefixDirect = "deploy-direct"; mkLinuxDeploy = { attrName, hostName }: pkgs.writeShellScript "${prefix}${hostName}" ''