20 lines
437 B
Nix
20 lines
437 B
Nix
{ 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";
|
|
};
|
|
};
|
|
}
|