confix/nixos/gui.nix

104 lines
2.1 KiB
Nix

# 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
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;
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";
}))
ani-cli
bashmount
discord
feh
glib
lagrange
libreoffice
mangal
mpv
mullvad-browser
mupdf
#onionshare-gui
scrot
signal-desktop
surf
tabbed
tor-browser-bundle-bin
urlview
];
environment.systemPackages = with pkgs; [
clipmenu
dunst
hsetroot
networkmanagerapplet
notify-desktop
#pa_applet
sxhkd
trayer
xbanish
xdg-utils
xdo
xdragon
xsel
];
}