logitech: Init user module
This commit is contained in:
parent
176983d0fa
commit
745b7af584
|
@ -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
|
||||||
|
|
19
users/simon/modules/logitech.nix
Normal file
19
users/simon/modules/logitech.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue