os/shared/home/gui/default.nix
2023-06-19 14:21:50 +02:00

31 lines
No EOL
517 B
Nix

{ pkgs, lib, config, ... }:
let cfg = config.custom.gui;
in {
options.custom.gui = {
enable = lib.mkEnableOption "Nix-managed GUI";
};
imports = [
./sway.nix
./term.nix
./waybar.nix
./dunst.nix
];
config = lib.mkIf (cfg.enable) {
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
# Fonts
fira-code
# GUI programs
pavucontrol
# We want `pactl` from the `pulseaudio` package
pulseaudio
tor-browser-bundle-bin
];
};
}