1 { config, lib, pkgs, ... }:
6 cfg = config.services.clipmenu;
9 options.services.clipmenu = {
10 enable = mkEnableOption (lib.mdDoc "clipmenu, the clipboard management daemon");
14 default = pkgs.clipmenu;
15 defaultText = literalExpression "pkgs.clipmenu";
16 description = lib.mdDoc "clipmenu derivation to use.";
20 config = mkIf cfg.enable {
21 systemd.user.services.clipmenu = {
23 description = "Clipboard management daemon";
24 wantedBy = [ "graphical-session.target" ];
25 after = [ "graphical-session.target" ];
26 serviceConfig.ExecStart = "${cfg.package}/bin/clipmenud";
29 environment.systemPackages = [ cfg.package ];