2020-04-22 22:13:03 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Display manager
|
2020-05-09 01:17:35 +02:00
|
|
|
services.xserver.enable = true;
|
2020-05-08 21:53:52 +02:00
|
|
|
services.xserver.displayManager = {
|
2020-04-22 22:13:03 +02:00
|
|
|
defaultSession = "sway";
|
|
|
|
sddm = {
|
|
|
|
enable = true;
|
2020-05-09 01:17:35 +02:00
|
|
|
autoLogin = {
|
2020-04-22 22:13:03 +02:00
|
|
|
enable = true;
|
|
|
|
user = "coolneng";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Window manager
|
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
xwayland
|
|
|
|
swaylock
|
|
|
|
swaybg
|
|
|
|
rofi
|
|
|
|
waybar
|
|
|
|
clipman
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
brillo
|
|
|
|
imv
|
|
|
|
kanshi
|
|
|
|
redshift-wlr
|
2020-05-09 13:53:59 +02:00
|
|
|
kitty
|
2020-04-22 22:13:03 +02:00
|
|
|
];
|
|
|
|
extraSessionCommands = ''
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export MOZ_DBUS_REMOTE=1
|
|
|
|
export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
|
|
|
'';
|
|
|
|
};
|
2020-05-09 13:53:59 +02:00
|
|
|
|
2020-04-22 22:13:03 +02:00
|
|
|
# Blue light filter
|
|
|
|
services.redshift = {
|
|
|
|
package = pkgs.redshift-wlr;
|
|
|
|
enable = true;
|
|
|
|
temperature = {
|
|
|
|
day = 6500;
|
2020-05-09 01:17:35 +02:00
|
|
|
night = 5000;
|
2020-04-22 22:13:03 +02:00
|
|
|
};
|
|
|
|
};
|
2020-05-09 01:17:35 +02:00
|
|
|
location = {
|
|
|
|
latitude = 35.89;
|
|
|
|
longitude = -5.32;
|
|
|
|
};
|
2020-04-22 22:13:03 +02:00
|
|
|
|
|
|
|
# Bar
|
|
|
|
programs.waybar.enable = true;
|
|
|
|
}
|