1 { config, lib, pkgs, ... }:
3 cfg = config.services.greenclip;
6 options.services.greenclip = {
7 enable = lib.mkEnableOption "Greenclip, a clipboard manager";
9 package = lib.mkPackageOption pkgs [ "haskellPackages" "greenclip" ] { };
12 config = lib.mkIf cfg.enable {
13 systemd.user.services.greenclip = {
15 description = "greenclip daemon";
16 wantedBy = [ "graphical-session.target" ];
17 after = [ "graphical-session.target" ];
19 ExecStart = "${cfg.package}/bin/greenclip daemon";
24 environment.systemPackages = [ cfg.package ];