confix/nixos/gui.nix

101 lines
2.1 KiB
Nix
Raw Normal View History

# 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"
];
};
};
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
};
};
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
2023-12-25 10:45:28 -05:00
#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
2023-09-26 23:45:25 -04:00
xdg-utils
xdo
xdragon
xsel
];
}