config/modules/gui/default.nix

49 lines
776 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
let gui = config.custom.gui;
# Clipboard wrapper scripts
clip = (import ../../scripts/clip.nix {
inherit pkgs;
});
in
2022-01-12 00:20:57 +01:00
with lib; {
2022-01-12 00:20:57 +01:00
imports = [
./wm
2022-01-12 00:20:57 +01:00
./pulseaudio.nix
2022-05-23 14:04:21 +02:00
./statusbar.nix
2022-05-15 18:35:31 +02:00
./terminal.nix
2022-01-12 00:20:57 +01:00
./theme.nix
2022-01-12 00:20:57 +01:00
];
options.custom.gui = {
# Use a nested enable option, to allow extension of this option
# namespace later on.
enable = mkEnableOption "gui applications and window manager";
};
2022-01-12 00:20:57 +01:00
config = mkIf (gui.enable) {
# Import some applications I use on all my graphical systems
users.users."riley".packages = (with pkgs; [
# My browser
google-chrome
# Telegram client
tdesktop
]) ++ (with clip; [ c p ]); # Add clipboard scripts
};
}