corectrl: Init and enable on sayuri

This commit is contained in:
Simon Bruder 2022-05-21 17:42:32 +02:00
parent 6be98cb106
commit 8882aa0d8d
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 29 additions and 0 deletions

View file

@ -93,4 +93,6 @@
]; ];
}; };
}; };
programs.corectrl.enable = true;
} }

View file

@ -4,6 +4,7 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
"adbusers" "adbusers"
"corectrl"
"dialout" "dialout"
"keys" "keys"
"libvirtd" "libvirtd"

View file

@ -0,0 +1,25 @@
{ lib, nixosConfig, pkgs, ... }:
lib.mkIf nixosConfig.programs.corectrl.enable {
systemd.user.services.corectrl = {
Unit = {
Requires = [ "tray.target" ];
After = [ "graphical-session-pre.target" "tray.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.corectrl}/bin/corectrl";
};
};
xdg.configFile."corectrl/corectrl.ini".text = lib.generators.toINI { } {
General = {
startOnSysTray = "true";
};
};
}

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./alacritty.nix ./alacritty.nix
./anki ./anki
./corectrl.nix
./games.nix ./games.nix
./ghci.nix ./ghci.nix
./git.nix ./git.nix