dotfiles/modules/home/graphical/wayland/ydotool.nix
eriedaberrie b5153b9dfa Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-09-16 22:42:09 -07:00

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;
};
};
}