add clipboard

This commit is contained in:
2025-11-05 20:48:56 -06:00
parent f9ac7944b3
commit 3bbe306485
5 changed files with 33 additions and 2 deletions

View File

@@ -45,7 +45,9 @@
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "suspend"; HandlePowerKey = "suspend";
HandleLidSwitch = "suspend"; HandleLidSwitch = "suspend";
#HibernateDelaySec = "30min"; #HandlePowerKey = "suspend-then-hibernate";
#HandleLidSwitch = "suspend-then-hibernate";
#HibernateDelaySec = "300";
}; };
# boot (systemd is growing on me) # boot (systemd is growing on me)

View File

@@ -0,0 +1,27 @@
{
pkgs,
lib,
config,
...
}: let
program = "clipboard";
cfg = config.dots.${program};
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
};
config = lib.mkIf cfg.enable {
services.cliphist = {
enable = true;
clipboardPackage = pkgs.wl-clipboard;
allowImages = true;
extraOptions = [ # these are the defaults
"-max-dedupe-search"
"10"
"-max-items"
"500"
];
};
};
}

View File

@@ -11,5 +11,6 @@
./stylix ./stylix
./hypr ./hypr
./tofi ./tofi
./clipboard
]; ];
} }

View File

@@ -8,7 +8,7 @@
{ {
imports = [ imports = [
../dots ../dots/core
]; ];
dots = { dots = {

View File

@@ -23,6 +23,7 @@
dunst.enable = true; dunst.enable = true;
hypr.enable = true; hypr.enable = true;
tofi.enable = true; tofi.enable = true;
clipboard.enable = true;
btop.enable = true; btop.enable = true;
lf.enable = true; lf.enable = true;