# GUI configuration.nix { config, lib, pkgs, inputs, user, ... }: { environment = { variables = { VISUAL = "$EDITOR"; BROWSER = "mullvad-browser"; SXHKD_SHELL = "/bin/sh"; TERMINAL = "st"; }; }; xdg.mime = { enable = true; defaultApplications = { "image/*" = [ "feh.desktop" ]; }; }; xdg = { autostart.enable = true; portal = { enable = true; xdgOpenUsePortal = true; extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; configPackages = [ pkgs.gnome.gnome-session ]; }; }; 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; slock.enable = true; }; users.users.${user.name}.packages = with pkgs; [ ani-cli bashmount feh glib lagrange librewolf mangal mpv mullvad-browser mupdf #onionshare-gui scrot tor-browser-bundle-bin #urlview ]; environment.systemPackages = 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"; })) clipmenu dunst hsetroot networkmanagerapplet notify-desktop sxhkd trayer xbanish xdg-utils xdo xdragon xsel ]; }