Files
nixos/modules/nix/gui.nix

57 lines
1.4 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
ubuntu_font_family
vazir-fonts
font-awesome
];
fontconfig = {
defaultFonts = {
serif = [ "Liberation Serif" "Vazirmatn" ];
sansSerif = [ "Ubuntu" "Vazirmatn" ];
monospace = [ "Ubuntu Mono" ];
};
};
};
};
}