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