nixos-config/i3.nix

99 lines
2.2 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
2022-01-30 14:22:26 +00:00
environment.systemPackages = with pkgs; [
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
feh
2022-01-30 14:22:26 +00:00
gnome3.gnome-keyring
2015-05-27 16:52:02 +00:00
networkmanagerapplet
2022-01-30 14:22:26 +00:00
gnome3.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
2020-11-26 16:58:22 +00:00
xdotool
2016-08-20 16:13:35 +00:00
scrot
2017-01-28 07:28:50 +00:00
pavucontrol
2020-11-26 21:48:08 +00:00
pasystray
2022-01-30 14:22:26 +00:00
gnome3.dconf-editor
2019-05-28 15:05:13 +00:00
unclutter-xfixes
2021-02-19 10:18:43 +00:00
dunst
xorg.xev
2016-08-26 05:32:38 +00:00
# gnome3 core packages
desktop_file_utils shared_mime_info
glib gtk3
glib_networking gvfs dconf
2022-01-30 14:22:26 +00:00
gnome3.gnome-settings-daemon
gnome_themes_standard gnome3.adwaita-icon-theme
2016-08-26 05:32:38 +00:00
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
2022-01-30 14:22:26 +00:00
export $(${pkgs.gnome3.gnome-keyring}/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export XDG_CURRENT_DESKTOP=X-Generic
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";
};
2022-01-30 14:22:26 +00:00
# services.dbus.socketActivated = true;
2020-07-14 14:47:09 +00:00
services.dbus.packages = with pkgs; [ dunst ];
2021-02-19 10:18:43 +00:00
systemd.packages = [ pkgs.dunst ];
2019-10-31 19:41:31 +00:00
2022-01-31 10:24:07 +00:00
# https://github.com/NixOS/nixpkgs/issues/157112
nixpkgs.config.packageOverrides = prev:
let
patchedPkgs = import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/ffdadd3ef9167657657d60daf3fe0f1b3176402d.tar.gz";
sha256 = "1nrz4vzjsf3n8wlnxskgcgcvpwaymrlff690f5njm4nl0rv22hkh";
}) {
inherit (prev) system config;
# inherit (prev) overlays; # not sure
};
patchedPam = patchedPkgs.pam;
in {
i3lock = prev.i3lock.override { pam = patchedPam; };
i3lock-color = prev.i3lock-color.override { pam = patchedPam; };
};
2015-05-27 16:52:02 +00:00
}