marleyos/modules/home/services/clipboard/default.nix

27 lines
389 B
Nix
Raw Normal View History

2024-11-16 21:18:54 -08:00
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.services.clipboard;
in
{
options = mkEnableModule "services.clipboard";
config = mkIf cfg.enable {
home.packages = with pkgs; [
clipboard-jh
];
home.sessionVariables = {
CLIPBOARD_THEME = "ansi";
};
};
}