nixos-config/common-gui.nix

105 lines
2.5 KiB
Nix
Raw Normal View History

2020-07-14 14:47:09 +00:00
{ config, pkgs, ... }:
{
imports = [
./pulseaudio.nix
];
i18n.inputMethod = {
enabled = "fcitx";
fcitx.engines = with pkgs.fcitx-engines; [ mozc anthy table-other m17n ];
};
fonts = {
enableDefaultFonts = false;
2020-08-22 14:11:23 +00:00
fontconfig = {
allowBitmaps = false;
};
2020-07-14 14:47:09 +00:00
fonts = with pkgs; [
xorg.fontbhlucidatypewriter100dpi
xorg.fontbhlucidatypewriter75dpi
freefont_ttf
gyre-fonts # TrueType substitutes for standard PostScript fonts
xorg.fontbh100dpi
xorg.fontmiscmisc
xorg.fontcursormisc
2020-08-22 14:11:23 +00:00
unifont
2020-07-14 14:47:09 +00:00
noto-fonts-emoji
noto-fonts-cjk
cantarell_fonts # from gnome3 module
2020-07-15 09:48:32 +00:00
2020-08-22 14:11:23 +00:00
merriweather
merriweather-sans
open-sans
# libertine # breaks 
dejavu_fonts
2020-08-17 18:50:24 +00:00
liberation_ttf
ubuntu_font_family
wqy_microhei
ipafont
ipaexfont
source-han-serif
source-han-sans
inconsolata
iosevka
fira fira-mono fira-code
source-code-pro
2020-07-15 09:48:32 +00:00
font-awesome_5
2020-07-14 14:47:09 +00:00
];
};
# prevent satanic torture
programs.qt5ct.enable = true;
hardware.uinput.enable = true;
users.extraUsers.gebner.extraGroups = [ "input" "tty" "audio" "video" "uinput" ];
services.dbus.packages = with pkgs; [ gnome3.gcr ];
services.udev.packages = [ pkgs.gnome3.gnome-settings-daemon ];
# copied from gnome3 module
security.polkit.enable = true;
services.udisks2.enable = true;
services.accounts-daemon.enable = true;
services.geoclue2.enable = true;
services.gnome3.at-spi2-core.enable = true;
services.gnome3.gnome-keyring.enable = true;
services.gvfs.enable = true;
programs.seahorse.enable = true;
services.gnome3.sushi.enable = true;
services.gnome3.gnome-settings-daemon.enable = true;
services.telepathy.enable = true;
networking.networkmanager.enable = true;
services.upower.enable = config.powerManagement.enable;
programs.dconf.enable = true;
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# Needed for themes and backgrounds
environment.pathsToLink = [ "/share" ];
environment.variables.GIO_EXTRA_MODULES = with pkgs.gnome3; [
"${pkgs.lib.getLib dconf}/lib/gio/modules"
"${glib_networking.out}/lib/gio/modules"
"${gvfs}/lib/gio/modules" ];
hardware.bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
services.blueman.enable = true;
programs.gnupg = {
agent.enable = true;
agent.pinentryFlavor = "gnome3";
};
}