nixos-config/i3.nix

81 lines
1.6 KiB
Nix
Raw Normal View History

2015-05-27 16:52:02 +00:00
{ config, pkgs, ... }:
{
2020-07-14 14:47:09 +00:00
imports = [
./common-gui.nix
];
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
2016-08-26 05:32:38 +00:00
nautilus # in closure of gnome-terminal anyhow
2019-10-11 11:04:41 +00:00
pcmanfm
2018-08-07 12:47:55 +00:00
# colord
2015-05-27 16:52:02 +00:00
evince
arandr
2018-10-28 13:54:38 +00:00
xss-lock i3lock i3lock-color
2018-08-07 12:47:55 +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
2019-05-28 15:05:13 +00:00
unclutter-xfixes
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
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;
2019-10-15 11:21:50 +00:00
# startx.enable = true;
# sddm.enable = true;
2020-05-22 09:17:53 +00:00
defaultSession = "i3wm";
2015-05-27 16:52:02 +00:00
};
desktopManager = {
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
2019-10-31 19:41:31 +00:00
export $(${pkgs.gnome3.gnome_keyring}/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
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
layout = "us";
xkbVariant = "altgr-intl";
xkbOptions = "caps:ctrl_modifier";
};
2020-07-14 14:47:09 +00:00
services.dbus.packages = with pkgs; [ dunst ];
2019-10-31 19:41:31 +00:00
2015-05-27 16:52:02 +00:00
}