add clipboard
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
27
users/blake/dots/desktop/clipboard/default.nix
Normal file
27
users/blake/dots/desktop/clipboard/default.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -11,5 +11,6 @@
|
|||||||
./stylix
|
./stylix
|
||||||
./hypr
|
./hypr
|
||||||
./tofi
|
./tofi
|
||||||
|
./clipboard
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../dots
|
../dots/core
|
||||||
];
|
];
|
||||||
|
|
||||||
dots = {
|
dots = {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user