logitech: Init user module

pull/64/head
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
./gtk.nix
./htop.nix
./logitech.nix
./misc.nix
./mpd.nix
./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";
};
};
}