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