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
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
# displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome.enable = false;
|
2020-04-08 18:36:58 +02:00
|
|
|
|
2022-03-09 20:36:48 +01:00
|
|
|
|
2022-09-18 01:00:32 +02:00
|
|
|
# Enable xmonad
|
2022-12-04 07:56:20 +01:00
|
|
|
windowManager.xmonad = {
|
|
|
|
enable = true;
|
|
|
|
enableContribAndExtras = true;
|
|
|
|
config = ./applications/xmonad/Main.hs;
|
|
|
|
};
|
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-09-18 01:00:32 +02:00
|
|
|
# I think this has to do with multiple monitors and stuff?
|
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;
|
2022-09-18 01:00:32 +02:00
|
|
|
|
|
|
|
environment.gnome.excludePackages = (with pkgs; [
|
|
|
|
# gnome-photos
|
|
|
|
# gnome-tour
|
|
|
|
]) ++ (with pkgs.gnome; [
|
|
|
|
cheese # webcam tool
|
|
|
|
gnome-music
|
|
|
|
gnome-terminal
|
|
|
|
gedit # text editor
|
|
|
|
epiphany # web browser
|
|
|
|
geary # email reader
|
|
|
|
evince # document viewer
|
|
|
|
gnome-characters
|
|
|
|
totem # video player
|
|
|
|
tali # poker game
|
|
|
|
iagno # go game
|
|
|
|
hitori # sudoku game
|
|
|
|
atomix # puzzle game
|
|
|
|
]);
|
2020-04-08 18:36:58 +02:00
|
|
|
}
|