67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
|
|
xdg.portal.enable = true;
|
|
services.geoclue2.enable = true;
|
|
location.provider = "geoclue2";
|
|
|
|
services.redshift = {
|
|
enable = true;
|
|
# Redshift with wayland support isn't present in nixos-19.09 atm. You have to cherry-pick the commit from https://github.com/NixOS/nixpkgs/pull/68285 to do that.
|
|
package = pkgs.redshift-wlr;
|
|
brightness.night = "0.75";
|
|
};
|
|
|
|
hardware.opengl = {
|
|
enable = true;
|
|
driSupport = true;
|
|
};
|
|
|
|
services.xserver.enable = true;
|
|
services.xserver.displayManager = {
|
|
defaultSession = "sway";
|
|
autoLogin = { enable = true; user = "mae"; };
|
|
gdm.enable = true;
|
|
};
|
|
|
|
fonts.fonts = with pkgs; [
|
|
noto-fonts
|
|
noto-fonts-cjk
|
|
noto-fonts-emoji
|
|
liberation_ttf
|
|
fira-code
|
|
fira-code-symbols
|
|
mplus-outline-fonts
|
|
dina-font
|
|
proggyfonts
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
brightnessctl
|
|
polkit_gnome
|
|
];
|
|
|
|
programs.sway = {
|
|
enable = true;
|
|
wrapperFeatures.gtk = true;
|
|
extraPackages = with pkgs; [
|
|
|
|
breeze-gtk
|
|
breeze-qt5
|
|
waybar
|
|
swaylock
|
|
swaybg
|
|
xwayland
|
|
wl-clipboard
|
|
grim
|
|
slurp
|
|
rofi
|
|
rofi-emoji
|
|
mako
|
|
sway-contrib.grimshot
|
|
];
|
|
|
|
};
|
|
|
|
}
|