config/modules/gui/clipboard.nix

21 lines
525 B
Nix
Raw Normal View History

# This is a simple module that does not define its own options.
# Rather, it just looks at the `custom.gui.enable` option to
# determine if it needs to add anything.
2022-01-12 00:20:57 +01:00
{ pkgs, lib, config, ... }:
let gui = config.custom.gui;
scripts = (import ../../scripts/clip.nix {
2022-05-15 20:02:26 +02:00
inherit pkgs;
});
in lib.mkIf (gui.enable) {
2022-01-12 00:20:57 +01:00
# Add some shell scripts that abstract away the
# horrible reality that the clipboard is managed by
# the display server.
users.users."riley".packages = with scripts; [ c p ];
2022-01-12 00:20:57 +01:00
}