nix-config/modules/graphical.nix

156 lines
3 KiB
Nix
Raw Normal View History

2022-05-25 19:27:42 +02:00
# General Desktop-related config
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
firefox-wayland
wl-clipboard
2022-06-08 18:47:49 +02:00
pulseaudioFull
2022-05-25 19:27:42 +02:00
screen-message
qbittorrent
2022-06-17 02:47:08 +02:00
dino
feh
mpv
zathura
brightnessctl
pulsemixer
cmus
gtk-engine-murrine
gtk_engines
gsettings-desktop-schemas
xdg-utils
nextcloud-client
2022-06-30 13:47:15 +02:00
foot
2022-08-06 14:41:23 +02:00
qt5.qtwayland
2022-08-08 19:27:10 +02:00
bashmount
2022-05-25 19:27:42 +02:00
];
#on the desktop, we need nice fonts ^^
fonts.fonts = with pkgs; [
monoid
2022-07-14 22:47:45 +02:00
(nerdfonts.override { fonts = [ "Monoid" "Hack" "FiraMono" ]; })
2022-07-13 15:44:33 +02:00
font-awesome
2022-05-25 19:27:42 +02:00
dejavu_fonts
julia-mono
uw-ttyp0
gohufont
spleen
terminus_font
creep
corefonts
dina-font
fira
fira-mono
hack-font
liberation_ttf
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
proggyfonts
symbola
open-sans
twemoji-color-font
twitter-color-emoji
];
fonts.enableDefaultFonts = true;
fonts.fontconfig = {
enable = true;
allowBitmaps = true;
useEmbeddedBitmaps = true;
defaultFonts.emoji = [
"Twitter Color Emoji"
"Noto Color Emoji"
];
};
# Enable sound.
security.rtkit.enable = true;
2022-06-08 18:47:49 +02:00
hardware.pulseaudio = {
2022-06-14 21:34:00 +02:00
enable = false;
2022-06-08 18:47:49 +02:00
zeroconf.discovery.enable = true;
extraClientConf = ''
autospawn=yes
2022-06-11 23:28:31 +02:00
'';
};
2022-06-08 18:47:49 +02:00
2022-05-25 19:27:42 +02:00
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
hardware.bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
programs.zsh.vteIntegration = true;
programs.bash.vteIntegration = true;
services.upower.enable = true;
2022-06-17 02:47:08 +02:00
services.acpid.enable = true;
programs.light.enable = true;
services.blueman.enable = true;
programs.xwayland.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
2022-08-06 14:41:23 +02:00
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export QT_QPA_PLATFORMTHEME="gnome"
export QT_STYLE_OVERRIDE="adwaita-dark"
'';
2022-06-17 02:47:08 +02:00
extraPackages = with pkgs; [
2022-07-13 15:44:33 +02:00
pamixer
2022-07-18 19:57:40 +02:00
swaylock
2022-06-17 02:47:08 +02:00
swayidle
wl-clipboard
mako
2022-06-30 13:47:15 +02:00
foot
2022-08-06 14:41:23 +02:00
rofi-wayland
2022-06-17 02:47:08 +02:00
grim
slurp
waybar
gnome3.adwaita-icon-theme
i3status-rust
];
};
environment.sessionVariables = { GTK_THEME = "Adwaita:dark"; };
xdg.portal = {
enable = true;
wlr.enable = true;
2022-07-14 22:47:45 +02:00
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
2022-06-17 02:47:08 +02:00
};
services.udisks2.enable = true;
environment.shellAliases = {
mnt = "udisksctl mount -b";
umnt = "udisksctl unmount -b";
unlock = "udisksctl unlock -b";
lock = "udisksctl lock -b";
};
2022-07-14 22:47:45 +02:00
qt5 = {
2022-06-17 02:47:08 +02:00
enable = true;
2022-07-14 22:47:45 +02:00
platformTheme = "gnome";
2022-07-15 05:05:30 +02:00
style = "adwaita-dark";
2022-06-17 02:47:08 +02:00
};
2022-07-14 22:47:45 +02:00
services.gnome.gnome-keyring.enable = true;
2022-06-17 02:47:08 +02:00
# required to autounlock gnome-keyring
services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
};
programs.gnupg.agent.pinentryFlavor = "gnome3";
2022-05-25 19:27:42 +02:00
}