marleyos/modules/home/services/clipboard/default.nix
2024-11-16 21:18:54 -08:00

26 lines
389 B
Nix

{
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";
};
};
}