dotfiles-nixos/nixos/i3.nix

34 lines
800 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:15:47 +00:00
xrandrHeads = [
"HDMI-1 --auto --left-of DP-1"
"DP-1 --auto --primary HDMI-1"
];
2023-06-08 13:11:21 +00:00
2023-06-06 15:01:28 +00:00
enable = true;
2023-06-06 15:19:23 +00:00
desktopManager = {
xterm.enable = false;
};
2023-06-08 13:15:47 +00:00
displayManager.defaultSession = "none+i3";
2023-06-06 15:19:23 +00:00
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 15:01:28 +00:00
layout = "us";
xkbVariant = "";
};
}