2022-07-25 13:31:09 +02:00
|
|
|
# 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
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
let gui = config.custom.gui;
|
|
|
|
|
|
|
|
scripts = (import ../../scripts/clip.nix {
|
2022-05-15 20:02:26 +02:00
|
|
|
inherit pkgs;
|
|
|
|
});
|
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
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.
|
2022-07-25 13:31:09 +02:00
|
|
|
users.users."riley".packages = with scripts; [ c p ];
|
2022-01-12 00:20:57 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
}
|