mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
hyprland: Refactor to accommodate more DEs
This commit is contained in:
parent
927f056987
commit
048c7fb888
7 changed files with 72 additions and 63 deletions
|
|
@ -8,11 +8,6 @@
|
|||
options.custom.services.cliphist.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.services.cliphist.enable {
|
||||
assertions = lib.singleton {
|
||||
assertion = config.custom.programs.rofi.enable;
|
||||
message = "Cliphist requires Rofi";
|
||||
};
|
||||
|
||||
services.cliphist = {
|
||||
enable = true;
|
||||
extraOptions = [ ];
|
||||
|
|
@ -23,7 +18,9 @@
|
|||
|
||||
home.packages = [
|
||||
pkgs.wl-clipboard
|
||||
(pkgs.writeScriptBin "rofi-clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
|
||||
];
|
||||
]
|
||||
++ lib.optional config.custom.programs.rofi.enable (
|
||||
pkgs.writeScriptBin "rofi-clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy"
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue