gnome3: fix build

This commit is contained in:
Gabriel Ebner 2020-09-18 17:32:50 +02:00
parent 32c0882522
commit d15faa1d15
1 changed files with 85 additions and 14 deletions

View File

@ -1,30 +1,101 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.ibus.enable = true; imports = [
programs.ibus.plugins = [ pkgs.ibus-anthy pkgs.mozc ]; ./pulseaudio.nix
];
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc table-others m17n ];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
xlibs.xwininfo # for gnome maximus extension
unzip
gnome3.libgweather gnome3.libgweather
gnome3.gnome-tweak-tool
pavucontrol
paprefs
]; ];
fonts = { fonts = {
enableDefaultFonts = false;
fontconfig = {
allowBitmaps = false;
};
fonts = with pkgs; [ fonts = with pkgs; [
inconsolata xorg.fontbhlucidatypewriter100dpi
dejavu_fonts xorg.fontbhlucidatypewriter75dpi
ipafont freefont_ttf
gyre-fonts # TrueType substitutes for standard PostScript fonts
xorg.fontbh100dpi
xorg.fontmiscmisc
xorg.fontcursormisc
unifont unifont
noto-fonts-emoji
noto-fonts-cjk
cantarell_fonts # from gnome3 module
merriweather
merriweather-sans
open-sans
# libertine # breaks 
dejavu_fonts
liberation_ttf
ubuntu_font_family ubuntu_font_family
wqy_microhei
ipafont
ipaexfont
source-han-serif
source-han-sans
inconsolata
iosevka
fira fira-mono fira-code
source-code-pro
font-awesome_5
]; ];
}; };
services.xserver.enable = true; # prevent satanic torture
services.xserver.displayManager.gdm.enable = true; programs.qt5ct.enable = true;
services.xserver.displayManager.desktopManagerHandlesLidAndPower = false;
services.xserver.desktopManager.gnome3.enable = true; hardware.uinput.enable = true;
services.xserver.layout = "us"; users.extraUsers.gebner.extraGroups = [ "input" "tty" "audio" "video" "uinput" ];
services.xserver.xkbVariant = "altgr-intl";
services.xserver.xkbOptions = "caps:ctrl_modifier"; hardware.bluetooth = {
enable = true;
package = pkgs.bluezFull;
};
services.blueman.enable = true;
programs.gnupg = {
agent.enable = true;
agent.pinentryFlavor = "gnome3";
};
services.xserver = {
enable = true;
libinput.enable = true;
displayManager.gdm.enable = true;
displayManager.defaultSession = "gnome";
desktopManager.gnome3 = {
enable = true;
};
};
# rust winit's wayland support is broken for input methods
environment.sessionVariables.WINIT_UNIX_BACKEND = "x11";
# services.xserver.enable = true;
# services.xserver.displayManager.gdm.enable = true;
# services.xserver.displayManager.desktopManagerHandlesLidAndPower = false;
# services.xserver.layout = "us";
# services.xserver.xkbVariant = "altgr-intl";
# services.xserver.xkbOptions = "caps:ctrl_modifier";
} }