Migrate services from wrappers to systemd services

This commit is contained in:
SebastianStork 2024-08-14 00:54:54 +02:00
parent e1ba06a5fb
commit aceeeef689
13 changed files with 291 additions and 247 deletions

View file

@ -0,0 +1,25 @@
{
config,
pkgs,
lib,
wrappers,
...
}:
{
options.myConfig.de.cliphist.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.de.cliphist.enable {
services.cliphist = {
enable = true;
allowImages = false;
};
systemd.user.services.cliphist.Service.ExecStartPre = "${lib.getExe config.services.cliphist.package} wipe";
home.packages = [
(wrappers.rofi { inherit (config.myConfig) theme; })
pkgs.wl-clipboard
(pkgs.writeScriptBin "rofi-clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
];
};
}