Files
nixos/modules/nix/gui.nix
2024-06-22 20:09:49 -05:00

60 lines
1.6 KiB
Nix

{ lib
, pkgs
, config
, localPackages
, ...
}:
with lib; let
cfg = config.simmer.gui;
in
{
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; with localPackages.x86_64-linux; []
++ optionals cfg.sway.enable [
wl-clipboard
grim
slurp
waybar
swaybg
kickoff
kickoff-dot-desktop
wayland-pipewire-idle-inhibit
firefox
mpv
feh
]
++ [ cfg.terminal ]
++ optional cfg.matrix cinny-desktop
++ optional cfg.secrets libsecret
++ optionals cfg.protonmail [ thunderbird protonmail-bridge ];
programs.dconf.enable = mkIf cfg.secrets true;
services.gnome.gnome-keyring.enable = mkIf cfg.secrets true;
services.dbus.packages = mkIf cfg.secrets [ pkgs.gnome.seahorse ];
xdg.portal.config.common = [ "wlr" "gtk" ];
programs.thunar.enable = true;
fonts = {
packages = with pkgs; [
liberation_ttf
noto-fonts
noto-fonts-cjk
noto-fonts-extra
ubuntu_font_family
vazir-fonts
font-awesome
];
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" "Noto Serif CJK JP" ];
sansSerif = [ "Noto Sans" "Noto Sans CJK JP" ];
monospace = [ "Ubuntu Mono" "Noto Sans Mono CJK JP" ];
};
};
};
};
}