1
Fork 0
satellite/modules/xserver.nix

85 lines
1.8 KiB
Nix
Raw Permalink Normal View History

{ pkgs, lib, ... }:
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;
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
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;
touchpad = {
naturalScrolling = true;
accelSpeed = "3.5";
2020-04-08 18:36:58 +02:00
tappingDragLock = false;
2022-08-24 13:13:35 +02:00
disableWhileTyping = true;
};
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?
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
}