summaryrefslogtreecommitdiff
path: root/module.nix
diff options
context:
space:
mode:
authoruakci <uakci@uakci.pl>2022-05-13 22:00:14 +0200
committeruakci <uakci@uakci.pl>2022-05-13 22:00:14 +0200
commit6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa (patch)
tree2a5b0bb802648368e3a97eaa3a236137df8be1e2 /module.nix
parentfix shell (diff)
downloadnuogai-6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa.tar.gz
nuogai-6b0785afd2c7dfb7ebcfeb2e811fec19823c07aa.zip
dirty fix for imagemagick not showing up in $PATH
Diffstat (limited to 'module.nix')
-rw-r--r--module.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/module.nix b/module.nix
index 54881de..f6702dd 100644
--- a/module.nix
+++ b/module.nix
@@ -11,7 +11,8 @@ in with lib; {
]);
tokenPath = mkOption { type = types.path; };
};
- config = let enable = cfg.enable; in {
+ config = let enable = cfg.enable;
+ in {
fonts.fonts = optionals enable [ self.packages.${system}.toaqScript ];
systemd.services = optionalAttrs enable (mapAttrs (k: v:
{
@@ -28,6 +29,7 @@ in with lib; {
};
script = ''
export TOKEN=$(cat ${cfg.tokenPath})
+ export PATH+=${self.packages.${system}.imagemagick}/bin
${pkg}/bin/nuogai
'';
};