panacea/modules/gui.nix

72 lines
1.3 KiB
Nix
Raw Normal View History

2020-04-22 22:13:03 +02:00
{ config, lib, pkgs, ... }:
{
# Display manager
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;
autoLogin = {
2020-04-22 22:13:03 +02:00
enable = true;
user = "coolneng";
};
};
};
# Window manager
programs.sway = {
enable = true;
extraPackages = with pkgs; [
xwayland
swaylock
2020-05-10 03:13:30 +02:00
swayidle
2020-04-22 22:13:03 +02:00
swaybg
rofi
waybar
clipman
2020-05-10 03:13:30 +02:00
wl-clipboard
2020-04-22 22:13:03 +02:00
grim
slurp
2020-05-09 18:45:10 +02:00
light
2020-04-22 22:13:03 +02:00
imv
kanshi
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-10 03:13:30 +02:00
2020-05-09 18:45:10 +02:00
# Backlight
programs.light.enable = true;
2020-04-22 22:13:03 +02:00
# Blue light filter
services.redshift = {
package = pkgs.redshift-wlr;
enable = true;
temperature = {
day = 6500;
night = 5000;
2020-04-22 22:13:03 +02:00
};
};
2020-05-09 18:45:10 +02:00
location = {
latitude = 35.89;
longitude = -5.32;
2020-05-10 03:13:30 +02:00
provider = "manual";
};
2020-04-22 22:13:03 +02:00
# Bar
programs.waybar.enable = true;
2020-05-10 03:13:30 +02:00
# GPG agent
programs.gnupg.agent = { enable = true; };
2020-04-22 22:13:03 +02:00
}