Split system config into tons of modules!

This commit is contained in:
Emmet 2023-06-20 22:08:25 -05:00
parent 74c00ca4ef
commit 8262f63886
21 changed files with 266 additions and 180 deletions

35
system/wm/x11.nix Normal file
View file

@ -0,0 +1,35 @@
{ config, pkgs, ... }:
{
imports = [ ./pipewire.nix
./dbus.nix
./gnome-keyring.nix
./fonts.nix
];
# Configure X11
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
xkbOptions = "caps:escape";
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
};
displayManager = {
lightdm.enable = true;
defaultSession = "none+xmonad";
sessionCommands = ''
xset -dpms
xset s blank
xset r rate 350 50
xset s 300
${pkgs.lightlocker}/bin/light-locker --idle-hint &
'';
};
libinput = {
touchpad.disableWhileTyping = true;
};
};
}