os/shared/home/gui/default.nix

30 lines
488 B
Nix
Raw Normal View History

2023-06-06 16:07:56 +02:00
{ pkgs, lib, config, ... }:
2023-05-21 21:15:04 +02:00
2023-06-06 16:07:56 +02:00
let cfg = config.custom.gui;
in {
options.custom.gui = {
enable = lib.mkEnableOption "Nix-managed GUI";
};
2023-05-21 21:15:04 +02:00
imports = [
./sway.nix
./term.nix
2023-06-06 19:54:12 +02:00
./waybar.nix
./dunst.nix
2023-05-21 21:15:04 +02:00
];
2023-06-06 16:07:56 +02:00
config = lib.mkIf (cfg.enable) {
fonts.fontconfig.enable = true;
2023-05-22 00:45:36 +02:00
2023-06-06 16:07:56 +02:00
home.packages = with pkgs; [
# Fonts
fira-code
# GUI programs
pavucontrol
2023-06-06 17:14:33 +02:00
# We want `pactl` from the `pulseaudio` package
pulseaudio
2023-06-06 16:07:56 +02:00
];
};
2023-05-22 00:45:36 +02:00
2023-05-21 21:15:04 +02:00
}