new wm, hyprland gone

This commit is contained in:
Reid 2025-05-18 23:05:26 -07:00
parent 003f37bfbd
commit cb4b22b4e5
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
41 changed files with 1145 additions and 1364 deletions

View file

@ -0,0 +1,39 @@
{ lib, config, pkgs, inputs, ... }:
with lib;
let
cfg = config.modules.desktop.cliphist;
in {
options.modules.desktop.cliphist = {
enable = mkEnableOption "enable cliphist, a clipboard manager for wayland";
package = mkOption {
type = types.package;
default = pkgs.cliphist;
};
summonScript = mkOption {
type = types.package;
default = pkgs.writeShellScript "cliphist-summon" ''
set -euo pipefail
${lib.getExe cfg.package} list | ${lib.getExe config.modules.desktop.fuzzel.package} --dmenu | ${lib.getExe cfg.package} decode | wl-copy
'';
};
};
config = mkIf cfg.enable {
hm.services.cliphist = {
enable = true;
allowImages = true;
package = cfg.package;
};
# home-manager recently did a huge upgrade and made it so wayland stuff doesn't break anymore
# however... they forgot to include cliphist
# https://github.com/nix-community/home-manager/pull/5785
# EDIT: i initially did this with `graphical-session-pre.target`, but that didn't work, pray this does
hm.systemd.user.services.cliphist.Unit.After = "graphical-session.target";
hm.systemd.user.services.cliphist-images.Unit.After = "graphical-session.target";
modules.desktop.rofi.enable = true;
};
}