feat(home): Clipboard
This commit is contained in:
parent
3e2454bc08
commit
1eae8c3ebb
3 changed files with 29 additions and 10 deletions
|
@ -50,6 +50,9 @@ in
|
|||
zathura = enabled;
|
||||
zoxide = enabled;
|
||||
};
|
||||
services = {
|
||||
clipboard = enabled;
|
||||
};
|
||||
xorg = {
|
||||
xsession = enabled;
|
||||
};
|
||||
|
|
26
modules/home/services/clipboard/default.nix
Normal file
26
modules/home/services/clipboard/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
clipboard-jh
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
CLIPBOARD_THEME = "ansi";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue