Move modules in programs/services subfolders

This commit is contained in:
SebastianStork 2025-05-28 11:33:05 +02:00
parent 2ff87c8404
commit 211ca98e92
38 changed files with 0 additions and 0 deletions

View file

@ -1,31 +0,0 @@
{
config,
pkgs,
lib,
...
}:
{
options.custom.services.cliphist.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.services.cliphist.enable {
assertions = [
{
assertion = config.custom.programs.rofi.enable;
message = "cliphist requires rofi";
}
];
services.cliphist = {
enable = true;
allowImages = false;
};
systemd.user.services.cliphist.Service.ExecStopPost =
"${lib.getExe config.services.cliphist.package} wipe";
home.packages = [
pkgs.wl-clipboard
(pkgs.writeScriptBin "rofi-clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
];
};
}