2023-08-02 23:20:31 -04:00
|
|
|
# GUI configuration.nix
|
2023-09-13 22:34:02 -04:00
|
|
|
{ config, lib, pkgs, inputs, user, ... }:
|
2023-08-02 23:20:31 -04:00
|
|
|
{
|
|
|
|
environment = {
|
|
|
|
variables = {
|
|
|
|
VISUAL = "$EDITOR";
|
2023-11-10 14:09:42 -05:00
|
|
|
BROWSER = "mullvad-browser";
|
2023-08-02 23:20:31 -04:00
|
|
|
SXHKD_SHELL = "/bin/sh";
|
|
|
|
TERMINAL = "st";
|
|
|
|
};
|
|
|
|
};
|
2023-09-13 22:34:02 -04:00
|
|
|
xdg.mime = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
|
|
|
"image/*" = [
|
2023-11-14 23:15:29 -05:00
|
|
|
"feh.desktop"
|
2023-09-13 22:34:02 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-09-26 23:45:25 -04:00
|
|
|
xdg = {
|
|
|
|
autostart.enable = true;
|
|
|
|
portal = {
|
|
|
|
enable = true;
|
|
|
|
xdgOpenUsePortal = true;
|
2023-12-25 10:45:28 -05:00
|
|
|
extraPortals = [
|
2023-09-26 23:45:25 -04:00
|
|
|
pkgs.xdg-desktop-portal-gtk
|
|
|
|
];
|
2023-12-25 10:45:28 -05:00
|
|
|
configPackages = [
|
|
|
|
pkgs.gnome.gnome-session
|
|
|
|
];
|
2023-09-26 23:45:25 -04:00
|
|
|
};
|
2023-08-02 23:20:31 -04:00
|
|
|
};
|
|
|
|
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;
|
|
|
|
};
|
2023-09-13 22:34:02 -04:00
|
|
|
users.users.${user.name}.packages = with pkgs; [
|
|
|
|
ani-cli
|
2023-11-04 21:58:08 -04:00
|
|
|
bashmount
|
2023-11-14 23:15:29 -05:00
|
|
|
feh
|
2023-11-04 21:58:08 -04:00
|
|
|
glib
|
2023-09-13 22:34:02 -04:00
|
|
|
lagrange
|
2023-12-03 21:25:44 -05:00
|
|
|
librewolf
|
2023-09-13 22:34:02 -04:00
|
|
|
mangal
|
2023-11-10 14:09:42 -05:00
|
|
|
mpv
|
2023-09-13 22:34:02 -04:00
|
|
|
mullvad-browser
|
|
|
|
mupdf
|
2023-11-10 14:09:42 -05:00
|
|
|
#onionshare-gui
|
2023-09-13 22:34:02 -04:00
|
|
|
scrot
|
|
|
|
tor-browser-bundle-bin
|
2023-12-25 10:45:28 -05:00
|
|
|
#urlview
|
2023-09-13 22:34:02 -04:00
|
|
|
];
|
2023-08-02 23:20:31 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-12-05 22:41:31 -05:00
|
|
|
(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";
|
|
|
|
}))
|
2023-08-02 23:20:31 -04:00
|
|
|
clipmenu
|
|
|
|
dunst
|
2023-09-13 22:34:02 -04:00
|
|
|
hsetroot
|
|
|
|
networkmanagerapplet
|
2023-08-02 23:20:31 -04:00
|
|
|
notify-desktop
|
2023-09-13 22:34:02 -04:00
|
|
|
sxhkd
|
2023-08-02 23:20:31 -04:00
|
|
|
trayer
|
|
|
|
xbanish
|
2023-09-26 23:45:25 -04:00
|
|
|
xdg-utils
|
2023-08-02 23:20:31 -04:00
|
|
|
xdo
|
|
|
|
xdragon
|
|
|
|
xsel
|
|
|
|
];
|
|
|
|
}
|