Use lib.meta.getExe
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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" ];
|
||||
|
Reference in New Issue
Block a user