2015-05-27 16:52:02 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2016-02-28 13:56:30 +00:00
|
|
|
# programs.ibus.enable = true;
|
|
|
|
# programs.ibus.plugins = [ pkgs.ibus-anthy pkgs.mozc ];
|
|
|
|
i18n.inputMethod = {
|
|
|
|
enabled = "fcitx";
|
|
|
|
fcitx.engines = with pkgs.fcitx-engines; [ mozc anthy table-other m17n ];
|
|
|
|
};
|
2015-05-27 16:52:02 +00:00
|
|
|
|
2015-09-01 12:16:20 +00:00
|
|
|
environment.systemPackages = with pkgs; with gnome3; [
|
2015-05-27 16:52:02 +00:00
|
|
|
i3
|
|
|
|
i3status
|
|
|
|
rofi
|
2016-07-24 07:55:31 +00:00
|
|
|
rofi-pass
|
2015-05-27 16:52:02 +00:00
|
|
|
pa_applet
|
|
|
|
feh
|
|
|
|
gnome_keyring
|
|
|
|
networkmanagerapplet
|
|
|
|
gnome_terminal
|
2016-08-26 05:32:38 +00:00
|
|
|
nautilus # in closure of gnome-terminal anyhow
|
2015-05-27 16:52:02 +00:00
|
|
|
colord
|
|
|
|
evince
|
|
|
|
arandr
|
2016-07-24 06:54:13 +00:00
|
|
|
xss-lock i3lock
|
2015-05-28 12:00:06 +00:00
|
|
|
xdotool
|
2016-08-20 16:13:35 +00:00
|
|
|
scrot
|
2017-01-28 07:28:50 +00:00
|
|
|
pavucontrol
|
2017-09-02 07:10:46 +00:00
|
|
|
dconf-editor
|
2016-08-26 05:32:38 +00:00
|
|
|
|
|
|
|
# gnome3 core packages
|
|
|
|
desktop_file_utils shared_mime_info
|
|
|
|
glib gtk3
|
|
|
|
glib_networking gvfs dconf
|
|
|
|
gnome_settings_daemon
|
|
|
|
gnome_themes_standard defaultIconTheme
|
|
|
|
hicolor_icon_theme
|
|
|
|
];
|
2015-05-27 16:52:02 +00:00
|
|
|
|
|
|
|
fonts = {
|
2017-08-30 20:37:28 +00:00
|
|
|
enableDefaultFonts = false;
|
2015-05-27 16:52:02 +00:00
|
|
|
fonts = with pkgs; [
|
2017-08-30 20:37:28 +00:00
|
|
|
xorg.fontbhlucidatypewriter100dpi
|
|
|
|
xorg.fontbhlucidatypewriter75dpi
|
|
|
|
dejavu_fonts
|
|
|
|
freefont_ttf
|
|
|
|
gyre-fonts # TrueType substitutes for standard PostScript fonts
|
|
|
|
liberation_ttf
|
|
|
|
xorg.fontbh100dpi
|
|
|
|
xorg.fontmiscmisc
|
|
|
|
xorg.fontcursormisc
|
|
|
|
# unifont
|
|
|
|
|
2015-08-26 10:22:28 +00:00
|
|
|
wqy_microhei
|
2015-05-27 16:52:02 +00:00
|
|
|
inconsolata
|
|
|
|
dejavu_fonts
|
2016-02-28 13:13:55 +00:00
|
|
|
ipafont
|
2016-02-22 10:49:29 +00:00
|
|
|
ipaexfont
|
2017-08-30 20:37:28 +00:00
|
|
|
# unifont
|
2015-05-27 16:52:02 +00:00
|
|
|
ubuntu_font_family
|
2016-10-29 00:28:15 +00:00
|
|
|
source-code-pro
|
2018-02-17 14:00:11 +00:00
|
|
|
fira fira-mono fira-code
|
2017-08-30 20:37:28 +00:00
|
|
|
noto-fonts-emoji
|
2018-03-16 17:00:49 +00:00
|
|
|
noto-fonts-cjk
|
2015-05-27 16:52:02 +00:00
|
|
|
|
|
|
|
cantarell_fonts # from gnome3 module
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
displayManager = {
|
2016-02-28 13:56:30 +00:00
|
|
|
# slim.enable = true;
|
|
|
|
# slim.defaultUser = "gebner";
|
|
|
|
# # slim.autoLogin = true;
|
|
|
|
|
|
|
|
lightdm.enable = true;
|
2015-05-27 16:52:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
desktopManager = {
|
|
|
|
default = "i3wm";
|
|
|
|
xterm.enable = false;
|
|
|
|
|
|
|
|
session = [ {
|
|
|
|
name = "i3wm";
|
|
|
|
start = ''
|
2017-09-02 07:41:48 +00:00
|
|
|
export XDG_DATA_DIRS=/run/current-system/sw/share/''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS
|
2015-06-01 12:14:41 +00:00
|
|
|
export $(${pkgs.gnome3.gnome_keyring}/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
|
2017-12-15 08:48:17 +00:00
|
|
|
export XDG_CURRENT_DESKTOP=X-Generic
|
2017-09-02 07:41:48 +00:00
|
|
|
for m in xsettings; do
|
|
|
|
${pkgs.gnome3.gnome_settings_daemon}/libexec/gsd-$m &
|
|
|
|
done
|
2016-10-03 13:21:23 +00:00
|
|
|
i3 &
|
2015-05-27 16:52:02 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
} ];
|
|
|
|
};
|
|
|
|
|
2017-09-02 07:41:48 +00:00
|
|
|
updateDbusEnvironment = true;
|
|
|
|
|
2015-05-27 16:52:02 +00:00
|
|
|
windowManager = {
|
|
|
|
default = "i3";
|
|
|
|
i3.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "altgr-intl";
|
|
|
|
xkbOptions = "caps:ctrl_modifier";
|
|
|
|
};
|
|
|
|
|
2015-06-01 12:14:41 +00:00
|
|
|
services.dbus.packages = with pkgs; [ dunst gnome3.gcr ];
|
2017-09-02 07:41:48 +00:00
|
|
|
services.udev.packages = [ pkgs.gnome3.gnome_settings_daemon ];
|
2015-05-27 16:52:02 +00:00
|
|
|
|
|
|
|
# copied from gnome3 module
|
|
|
|
security.polkit.enable = true;
|
|
|
|
services.udisks2.enable = true;
|
2016-07-24 07:45:46 +00:00
|
|
|
services.accounts-daemon.enable = true;
|
2015-05-27 16:52:02 +00:00
|
|
|
services.geoclue2.enable = true;
|
|
|
|
services.gnome3.at-spi2-core.enable = true;
|
2015-12-06 10:38:16 +00:00
|
|
|
# services.gnome3.evolution-data-server.enable = true;
|
2015-05-27 16:52:02 +00:00
|
|
|
# services.gnome3.gnome-documents.enable = true;
|
|
|
|
services.gnome3.gnome-keyring.enable = true;
|
2016-08-26 05:32:38 +00:00
|
|
|
#services.gnome3.gnome-online-accounts.enable = true;
|
2015-12-06 10:38:16 +00:00
|
|
|
# services.gnome3.gnome-user-share.enable = true;
|
2015-05-27 16:52:02 +00:00
|
|
|
services.gnome3.gvfs.enable = true;
|
|
|
|
services.gnome3.seahorse.enable = true;
|
|
|
|
services.gnome3.sushi.enable = true;
|
2015-12-06 10:38:16 +00:00
|
|
|
# services.gnome3.tracker.enable = true;
|
2015-05-27 16:52:02 +00:00
|
|
|
services.telepathy.enable = true;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
services.upower.enable = config.powerManagement.enable;
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
# Needed for themes and backgrounds
|
|
|
|
environment.pathsToLink = [ "/share" ];
|
|
|
|
environment.variables.GIO_EXTRA_MODULES = with pkgs.gnome3; [
|
2017-09-02 07:41:48 +00:00
|
|
|
"${pkgs.lib.getLib dconf}/lib/gio/modules"
|
|
|
|
"${glib_networking.out}/lib/gio/modules"
|
2015-05-27 16:52:02 +00:00
|
|
|
"${gvfs}/lib/gio/modules" ];
|
|
|
|
|
2017-09-22 18:26:19 +00:00
|
|
|
hardware.pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
zeroconf.discovery.enable = true;
|
2018-03-25 08:53:17 +00:00
|
|
|
daemon.config = {
|
|
|
|
flat-volumes = "no";
|
|
|
|
};
|
2018-02-17 14:00:11 +00:00
|
|
|
package = pkgs.pulseaudioFull;
|
2017-09-22 18:26:19 +00:00
|
|
|
};
|
|
|
|
|
2015-05-27 16:52:02 +00:00
|
|
|
}
|