Compare commits
1 commit
master
...
qt/systemd
Author | SHA1 | Date | |
---|---|---|---|
dc1e9d1bc6 |
|
@ -24,6 +24,22 @@ in
|
|||
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 = {
|
||||
Environment = "PATH=%h/.nix-profile/bin";
|
||||
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||
ExecStart = "${package}/bin/flameshot";
|
||||
Restart = "on-abort";
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ with lib;
|
|||
};
|
||||
|
||||
Service = {
|
||||
Environment = "PATH=%h/.nix-profile/bin";
|
||||
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
|
||||
};
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ with lib;
|
|||
};
|
||||
|
||||
Service = {
|
||||
Environment = "PATH=%h/.nix-profile/bin";
|
||||
Environment = "PATH=${config.qt.systemdServicePath}";
|
||||
ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue