working towards i3
This commit is contained in:
parent
a1d5509ab6
commit
5a49cce821
2 changed files with 23 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
||||||
with builtins;
|
with builtins;
|
||||||
{
|
{
|
||||||
wm = "plasma";
|
wm = "i3";
|
||||||
|
|
||||||
# very, very non-exhaustive of course
|
# very, very non-exhaustive of course
|
||||||
is-x11 = wm: elem wm ["plasma" "xmonad"];
|
is-x11 = wm: elem wm ["plasma" "xmonad" "i3"];
|
||||||
is-wayland = wm: elem wm ["hyprland" "sway"];
|
is-wayland = wm: elem wm ["hyprland" "sway"];
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,17 +57,30 @@ in
|
||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# x11 stuff
|
||||||
services.xserver.enable = x11;
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
|
||||||
services.xserver.displayManager.sddm.enable = conf.wm == "plasma" || conf.wm == "xmonad";
|
|
||||||
services.xserver.desktopManager.plasma5.enable = conf.wm == "plasma";
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
enable = x11;
|
||||||
|
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
|
|
||||||
|
desktopManager = {
|
||||||
|
plasma5.enable = conf.wm == "plasma";
|
||||||
|
xterm.enable = false;
|
||||||
|
};
|
||||||
|
displayManager = {
|
||||||
|
sddm.enable = conf.wm == "plasma" || conf.wm == "xmonad";
|
||||||
|
};
|
||||||
|
windowManager = {
|
||||||
|
i3.enable = conf.wm == "i3";
|
||||||
|
extraPackages = if conf.wm == "i3"
|
||||||
|
then with pkgs; [
|
||||||
|
dmenu
|
||||||
|
i3status
|
||||||
|
i3lock
|
||||||
|
i3blocks
|
||||||
|
] else [];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
|
|
Loading…
Reference in a new issue