corectrl: Init and enable on sayuri
This commit is contained in:
parent
6be98cb106
commit
8882aa0d8d
|
@ -93,4 +93,6 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.corectrl.enable = true;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"corectrl"
|
||||
"dialout"
|
||||
"keys"
|
||||
"libvirtd"
|
||||
|
|
25
users/simon/modules/corectrl.nix
Normal file
25
users/simon/modules/corectrl.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./alacritty.nix
|
||||
./anki
|
||||
./corectrl.nix
|
||||
./games.nix
|
||||
./ghci.nix
|
||||
./git.nix
|
||||
|
|
Loading…
Reference in a new issue