feat(desktop): add lnxlink module.
This commit is contained in:
parent
ca8570f469
commit
f2922095ec
4 changed files with 66 additions and 22 deletions
35
modules/linux/home-manager/lnxlink.nix
Normal file
35
modules/linux/home-manager/lnxlink.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.lnxlink.enable = lib.mkEnableOption "Enable and setup lnxlink.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.lnxlink.enable {
|
||||
home.packages = [
|
||||
inputs.lnxlink.packages.${pkgs.system}.default
|
||||
];
|
||||
|
||||
systemd.user.services.lnxlink = {
|
||||
Unit = {
|
||||
Description = "LNXLlink";
|
||||
After = ["network-online.target" "mutli-user.target" "graphical.target"];
|
||||
PartOf = ["graphical-session.target"];
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
Service = {
|
||||
WorkingDirectory = "/home/crony/.config/lnxlink";
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
ExecStart = "${inputs.lnxlink.packages.${pkgs.system}.default}/bin/lnxlink --config /home/crony/.config/lnxlink/config.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue