dotfiles-nixos/nixos/i3.nix

39 lines
885 B
Nix
Raw Normal View History

2023-06-06 15:01:28 +00:00
{ config, lib, pkgs, ... }:
{
2023-06-06 17:25:40 +00:00
environment.pathsToLink = [ "/libexec" ]; # links /libexec from derivations to /run/current-system/sw
2023-06-06 15:01:28 +00:00
# Define the i3 window manager configuration
2023-06-06 15:19:23 +00:00
services.xserver = {
2023-06-08 13:11:21 +00:00
xrandrHeads = {
[
"HDMI-1 --auto --left-of DP-1"
"DP-1 --auto --primary --right-of HDMI-1"
];
};
2023-06-06 15:01:28 +00:00
enable = true;
2023-06-06 15:19:23 +00:00
desktopManager = {
xterm.enable = false;
};
displayManager = {
defaultSession = "none+i3";
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu #application launcher most people use
i3status # gives you the default i3 status bar
i3lock #default i3 screen locker
i3blocks #if you are planning on using i3blocks over i3status
];
};
2023-06-06 17:25:40 +00:00
windowManager.default = "i3";
2023-06-06 15:01:28 +00:00
layout = "us";
xkbVariant = "";
};
}