panacea/modules/gui.nix

77 lines
1.4 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";
lightdm = {
2020-04-22 22:13:03 +02:00
enable = true;
autoLogin = {
2020-04-22 22:13:03 +02:00
enable = true;
user = "coolneng";
};
greeter.package = pkgs.lightdm_gtk_greeter;
2020-04-22 22:13:03 +02:00
};
};
# 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_DBUS_REMOTE=1
2020-04-22 22:13:03 +02:00
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
export GTK_THEME=Adapta-Eta
2020-04-22 22:13:03 +02:00
'';
wrapperFeatures.gtk = true;
2020-04-22 22:13:03 +02:00
};
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
location = {
latitude = 35.89;
longitude = -5.32;
provider = "manual";
};
2020-04-22 22:13:03 +02:00
services.redshift = {
package = pkgs.redshift-wlr;
enable = true;
temperature = {
day = 6500;
night = 5300;
2020-04-22 22:13:03 +02:00
};
};
2020-05-09 18:45:10 +02:00
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;
pinentryFlavor = "gnome3";
};
2020-04-22 22:13:03 +02:00
}