feat(home): Clipboard

This commit is contained in:
punkfairie 2024-11-16 21:18:54 -08:00
parent 3e2454bc08
commit 1eae8c3ebb
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 29 additions and 10 deletions

View file

@ -50,6 +50,9 @@ in
zathura = enabled;
zoxide = enabled;
};
services = {
clipboard = enabled;
};
xorg = {
xsession = enabled;
};

View file

@ -0,0 +1,26 @@
{
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";
};
};
}

View file

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
clipboard-jh
];
home.sessionVariables = {
CLIPBOARD_THEME = "ansi";
};
}