27 lines
389 B
Nix
27 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";
|
||
|
};
|
||
|
};
|
||
|
}
|