devos/profiles/sway/default.nix

77 lines
1.3 KiB
Nix
Raw Normal View History

2021-04-06 13:37:40 +02:00
{ config, lib, pkgs, ... }:
{
2022-02-17 22:18:55 +01:00
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [
2022-02-19 22:40:20 +01:00
pkgs.xdg-desktop-portal-kde
2022-02-17 22:18:55 +01:00
];
};
2021-04-09 21:20:58 +02:00
services.geoclue2.enable = true;
location.provider = "geoclue2";
services.redshift = {
enable = true;
2022-06-06 18:14:56 +02:00
package = pkgs.gammastep;
2021-04-09 21:20:58 +02:00
brightness.night = "0.75";
};
2021-04-06 13:37:40 +02:00
hardware.opengl = {
enable = true;
driSupport = true;
2021-11-23 01:05:20 +01:00
driSupport32Bit = true;
2021-04-06 13:37:40 +02:00
};
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
dina-font
proggyfonts
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
environment.systemPackages = with pkgs; [
2022-02-17 22:18:55 +01:00
xdg-desktop-portal-wlr
2021-04-06 13:37:40 +02:00
brightnessctl
polkit_gnome
2022-03-20 00:05:13 +01:00
vulkan-tools
mesa
2021-04-06 13:37:40 +02:00
];
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
];
};
}