Use lib.meta.getExe

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-25 20:16:42 +03:00
parent eaa63dd272
commit d9a3936d51
17 changed files with 141 additions and 133 deletions

View File

@@ -20,9 +20,8 @@ in
systemd.user = {
services.gpg-agent-import =
let
name = "import-gpg-keys";
init = pkgs.writeShellApplication {
inherit name;
init = lib.meta.getExe (pkgs.writeShellApplication {
name = "import-gpg-keys";
runtimeInputs = with pkgs; [
coreutils-full
gnugrep
@@ -33,7 +32,7 @@ in
HOME = user.home;
};
text = builtins.readFile ./import-gpg-keys.sh;
};
});
in
{
Unit = {
@@ -44,7 +43,7 @@ in
Service = {
Type = "oneshot";
ExecStart = "${init}/bin/${name}";
ExecStart = init;
};
Install.WantedBy = [ "default.target" ];