1 { config, lib, pkgs, ... }:
3 cfg = config.services.clipmenu;
6 options.services.clipmenu = {
7 enable = lib.mkEnableOption "clipmenu, the clipboard management daemon";
9 package = lib.mkPackageOption pkgs "clipmenu" { };
12 config = lib.mkIf cfg.enable {
13 systemd.user.services.clipmenu = {
15 description = "Clipboard management daemon";
16 wantedBy = [ "graphical-session.target" ];
17 after = [ "graphical-session.target" ];
18 serviceConfig.ExecStart = "${cfg.package}/bin/clipmenud";
21 environment.systemPackages = [ cfg.package ];