1a737bd471
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
21 lines
526 B
Nix
21 lines
526 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.graphical.wayland.ydotool;
|
|
in {
|
|
options.my.graphical.wayland.ydotool = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [ pkgs.ydotool ];
|
|
xdg.configFile = let
|
|
serviceName = "ydotool.service";
|
|
service = "${pkgs.ydotool}/share/systemd/user/${serviceName}";
|
|
in {
|
|
"systemd/user/${serviceName}".source = service;
|
|
"systemd/user/default.target.wants/${serviceName}".source = service;
|
|
};
|
|
};
|
|
}
|