Simon Bruder
10b8d432d5
This applies the REUSE specification to the repository, so the licensing information can be tracked for every file individually.
24 lines
548 B
Nix
24 lines
548 B
Nix
# SPDX-FileCopyrightText: 2022 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ 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";
|
|
};
|
|
};
|
|
}
|