added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
29
nyx/homes/notashelf/services/wayland/clipboard/default.nix
Normal file
29
nyx/homes/notashelf/services/wayland/clipboard/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkGraphicalService getExe;
|
||||
inherit (osConfig) meta;
|
||||
in {
|
||||
config = mkIf meta.isWayland {
|
||||
systemd.user.services = {
|
||||
cliphist = mkGraphicalService {
|
||||
Unit.Description = "Clipboard history service";
|
||||
Service = {
|
||||
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste --watch ${getExe pkgs.cliphist} store";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
wl-clip-persist = mkGraphicalService {
|
||||
Unit.Description = "Persistent clipboard for Wayland";
|
||||
Service = {
|
||||
ExecStart = "${getExe pkgs.wl-clip-persist} --clipboard both";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue