# GUI configuration.nix { config, lib, pkgs, inputs, user, ... }: { environment = { variables = { VISUAL = "$EDITOR"; BROWSER = "librewolf"; SXHKD_SHELL = "/bin/sh"; TERMINAL = "st"; }; }; xdg.mime = { enable = true; defaultApplications = { "image/*" = [ "sxiv.desktop" ]; }; }; xdg.portal = { enable = true; xdgOpenUsePortal = true; extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; }; services = { xserver = { enable = true; displayManager.startx.enable = true; windowManager.bspwm.enable = true; layout = "us"; xkbVariant = ""; }; picom = { enable = true; }; # To add the Flathub repo, run: # $ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak.enable = true; dbus.enable = true; }; fonts.packages = with pkgs; [ comic-mono noto-fonts noto-fonts-cjk noto-fonts-emoji fira-code fira-code-symbols dina-font ]; programs = { dconf.enable = true; }; programs = { slock.enable = true; }; users.users.${user.name}.packages = with pkgs; [ (dmenu.overrideAttrs (oldAttrs: rec { configFile = writeText "config.def.h" (builtins.readFile ./patches/dmenu/config.h); postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h"; })) (st.overrideAttrs (oldAttrs: rec { configFile = writeText "config.def.h" (builtins.readFile ./patches/st/config.h); postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h"; })) aether ani-cli lagrange libreoffice mangal mullvad-browser mupdf onionshare scrot signal-desktop sxiv tor-browser-bundle-bin ]; environment.systemPackages = with pkgs; [ clipmenu dunst hsetroot networkmanagerapplet notify-desktop sxhkd trayer volumeicon xbanish xdo xdragon xsel ]; }