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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-17 11:40:34 -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;
};
};
}