nixos-config/i3.nix

102 lines
2.5 KiB
Nix
Raw Normal View History

2015-05-27 16:52:02 +00:00
{ config, pkgs, ... }:
{
programs.ibus.enable = true;
programs.ibus.plugins = [ pkgs.ibus-anthy pkgs.mozc ];
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
pa_applet
feh
gnome_keyring
networkmanagerapplet
gnome_terminal
colord
evince
arandr
2015-05-28 11:58:10 +00:00
xautolock i3lock
2015-05-28 12:00:06 +00:00
xdotool
2015-06-01 12:14:29 +00:00
xlibs.xbacklight
2015-05-27 16:52:02 +00:00
] ++ gnome3.corePackages;
fonts = {
fonts = with pkgs; [
2015-08-26 10:22:28 +00:00
wqy_microhei
2015-05-27 16:52:02 +00:00
inconsolata
dejavu_fonts
ipafont
unifont
ubuntu_font_family
cantarell_fonts # from gnome3 module
];
};
services.xserver = {
enable = true;
displayManager = {
slim.enable = true;
slim.defaultUser = "gebner";
# slim.autoLogin = true;
};
desktopManager = {
default = "i3wm";
xterm.enable = false;
session = [ {
name = "i3wm";
start = ''
2015-06-01 12:14:41 +00:00
export $(${pkgs.gnome3.gnome_keyring}/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
2015-07-13 12:24:44 +00:00
export XDG_CURRENT_DESKTOP=GNOME
2015-05-27 16:52:02 +00:00
${pkgs.gnome3.gnome_settings_daemon}/libexec/gnome-settings-daemon-localeexec &
${pkgs.i3}/bin/i3 &
waitPID=$!
'';
} ];
};
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 ];
2015-05-27 16:52:02 +00:00
# copied from gnome3 module
security.polkit.enable = true;
services.udisks2.enable = true;
2015-12-06 10:38:16 +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;
2015-12-06 10:38:16 +00:00
# services.gnome3.gnome-online-accounts.enable = true;
# 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
hardware.pulseaudio.enable = true;
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; [
"${dconf}/lib/gio/modules"
"${glib_networking}/lib/gio/modules"
"${gvfs}/lib/gio/modules" ];
}