2022-05-22 15:42:46 +02:00
|
|
|
{ pkgs, lib, ... }:
|
2022-05-10 18:00:16 +02:00
|
|
|
let
|
|
|
|
theme = pkgs.myThemes.current;
|
|
|
|
in
|
|
|
|
{
|
2022-03-09 20:36:48 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Required for the sddm theme
|
|
|
|
libsForQt5.qt5.qtquickcontrols
|
|
|
|
libsForQt5.qt5.qtgraphicaleffects
|
|
|
|
libsForQt5.qt5.qtbase
|
|
|
|
];
|
|
|
|
|
2020-04-08 18:36:58 +02:00
|
|
|
services.xserver = {
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
enable = true;
|
|
|
|
xkbOptions = "eurosign:e";
|
|
|
|
|
2021-11-29 15:00:11 +01:00
|
|
|
# Make the xmonad session the default
|
2022-03-09 20:36:48 +01:00
|
|
|
# displayManager.defaultSession = "none+xmonad";
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+xmonad";
|
|
|
|
sddm = {
|
|
|
|
enable = true;
|
2022-05-10 18:00:16 +02:00
|
|
|
theme = theme.sddm.path;
|
2022-03-09 20:36:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "adrielus";
|
|
|
|
};
|
|
|
|
};
|
2021-11-21 13:34:07 +01:00
|
|
|
|
2021-11-29 15:00:11 +01:00
|
|
|
# Enable xmonad
|
2021-11-21 13:34:07 +01:00
|
|
|
windowManager.xmonad = {
|
|
|
|
enable = true;
|
|
|
|
enableContribAndExtras = true;
|
|
|
|
};
|
2020-04-08 18:36:58 +02:00
|
|
|
|
2021-11-29 15:00:11 +01:00
|
|
|
# Enable xfce I think?
|
2022-03-09 20:36:48 +01:00
|
|
|
# desktopManager = {
|
|
|
|
# xterm.enable = false;
|
|
|
|
# xfce = {
|
|
|
|
# enable = true;
|
|
|
|
# noDesktop = true;
|
|
|
|
# enableXfwm = false;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
2021-11-29 15:00:11 +01:00
|
|
|
|
2020-04-08 18:36:58 +02:00
|
|
|
libinput = {
|
|
|
|
# Enable touchpad support.
|
|
|
|
enable = true;
|
|
|
|
|
2021-11-21 12:55:12 +01:00
|
|
|
touchpad = {
|
|
|
|
naturalScrolling = true;
|
|
|
|
accelSpeed = "3.5";
|
2020-04-08 18:36:58 +02:00
|
|
|
|
2021-11-21 12:55:12 +01:00
|
|
|
tappingDragLock = false;
|
2022-08-24 13:13:35 +02:00
|
|
|
disableWhileTyping = true;
|
2021-11-21 12:55:12 +01:00
|
|
|
};
|
2020-04-08 18:36:58 +02:00
|
|
|
};
|
|
|
|
};
|
2020-04-12 14:09:13 +02:00
|
|
|
|
2022-05-22 15:42:46 +02:00
|
|
|
services.xserver.displayManager.sessionCommands = ''
|
|
|
|
${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 2 0
|
|
|
|
'';
|
|
|
|
|
2020-05-29 11:29:33 +02:00
|
|
|
services.fractalart.enable = true;
|
2020-04-12 14:09:13 +02:00
|
|
|
hardware.opengl.enable = true;
|
2020-04-08 18:36:58 +02:00
|
|
|
}
|