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

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-15 10:43:48 -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;
};
};
}