Compare commits
1 commit
master
...
qt/systemd
Author | SHA1 | Date | |
---|---|---|---|
dc1e9d1bc6 |
|
@ -24,6 +24,22 @@ in
|
||||||
settings.
|
settings.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemdServicePath = mkOption {
|
||||||
|
type = types.envVar;
|
||||||
|
default = lib.makeSearchPath "bin" [
|
||||||
|
"/etc/profiles/per-user/%u"
|
||||||
|
"%h/.nix-profile"
|
||||||
|
"/nix/var/nix/profiles/default"
|
||||||
|
"/run/current-system/sw"
|
||||||
|
];
|
||||||
|
visible = false;
|
||||||
|
description = ''
|
||||||
|
Path to use for systemd services that run Qt 5 applications.
|
||||||
|
This is to ensure that the application is able to locate any
|
||||||
|
necessary Qt plugins.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Environment = "PATH=%h/.nix-profile/bin";
|
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||||
ExecStart = "${package}/bin/flameshot";
|
ExecStart = "${package}/bin/flameshot";
|
||||||
Restart = "on-abort";
|
Restart = "on-abort";
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Environment = "PATH=%h/.nix-profile/bin";
|
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||||
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
|
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Environment = "PATH=%h/.nix-profile/bin";
|
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||||
ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
|
ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue