corectrl: Init and enable on sayuri

pull/64/head
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;
extraGroups = [
"adbusers"
"corectrl"
"dialout"
"keys"
"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 = [
./alacritty.nix
./anki
./corectrl.nix
./games.nix
./ghci.nix
./git.nix