logitech: Init user module

This commit is contained in:
Simon Bruder 2022-02-09 20:21:27 +01:00
parent 176983d0fa
commit 745b7af584
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 20 additions and 0 deletions

View file

@ -8,6 +8,7 @@
./gpg.nix ./gpg.nix
./gtk.nix ./gtk.nix
./htop.nix ./htop.nix
./logitech.nix
./misc.nix ./misc.nix
./mpd.nix ./mpd.nix
./mpv ./mpv

View file

@ -0,0 +1,19 @@
{ lib, nixosConfig, pkgs, ... }:
lib.mkIf nixosConfig.sbruder.gui.enable {
systemd.user.services.solaar = {
Unit = {
Requires = [ "tray.target" ];
After = [ "graphical-session-pre.target" "tray.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.solaar}/bin/solaar -w hide";
};
};
}