70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Display manager
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager = {
|
|
defaultSession = "sway";
|
|
lightdm = {
|
|
enable = true;
|
|
autoLogin = {
|
|
enable = true;
|
|
user = "coolneng";
|
|
};
|
|
};
|
|
};
|
|
|
|
# Window manager
|
|
programs.sway = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
xwayland
|
|
swaylock
|
|
swayidle
|
|
swaybg
|
|
rofi
|
|
waybar
|
|
clipman
|
|
wl-clipboard
|
|
grim
|
|
slurp
|
|
light
|
|
imv
|
|
kanshi
|
|
kitty
|
|
];
|
|
extraSessionCommands = ''
|
|
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
|
|
'';
|
|
};
|
|
|
|
# Backlight
|
|
programs.light.enable = true;
|
|
|
|
# Blue light filter
|
|
location = {
|
|
latitude = 35.89;
|
|
longitude = -5.32;
|
|
provider = "manual";
|
|
};
|
|
|
|
services.redshift = {
|
|
package = pkgs.redshift-wlr;
|
|
enable = true;
|
|
temperature = {
|
|
day = 6500;
|
|
night = 5300;
|
|
};
|
|
};
|
|
|
|
# Bar
|
|
programs.waybar.enable = true;
|
|
|
|
# GPG agent
|
|
programs.gnupg.agent = { enable = true; };
|
|
}
|