mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 17:54:08 -05:00
32 lines
568 B
Nix
32 lines
568 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
|
|
options.i3.enable = lib.mkEnableOption "enables i3wm";
|
|
|
|
config = lib.mkIf config.i3.enable {
|
|
|
|
services = {
|
|
libinput = {
|
|
enable = true;
|
|
touchpad.naturalScrolling = true;
|
|
};
|
|
|
|
xserver = {
|
|
enable = true;
|
|
autoRepeatDelay = 225;
|
|
autoRepeatInterval = 20;
|
|
|
|
windowManager.i3 = {
|
|
enable = true;
|
|
configFile = ./i3.config;
|
|
};
|
|
displayManager.startx.enable = true;
|
|
desktopManager.xterm.enable = false;
|
|
};
|
|
};
|
|
};
|
|
}
|