Merge pull request #138931 from Ma27/safeeyes-appdata

nixos/safeeyes: misc improvements
This commit is contained in:
Maximilian Bosch 2021-09-22 20:36:33 +02:00 committed by GitHub
commit e4e5deaa34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -26,12 +26,16 @@ in
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.safeeyes ];
systemd.user.services.safeeyes = {
description = "Safeeyes";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
path = [ pkgs.alsa-utils ];
startLimitIntervalSec = 350;
startLimitBurst = 10;
serviceConfig = {

View file

@ -57,6 +57,9 @@ in buildPythonApplication rec {
# safeeyes images
--prefix XDG_DATA_DIRS : "$out/lib/${python.libPrefix}/site-packages/usr/share"
)
mkdir -p $out/share/applications
cp -r safeeyes/platform/icons $out/share/
cp safeeyes/platform/safeeyes.desktop $out/share/applications/
'';
doCheck = false; # no tests