326 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *

This commit is contained in:
Max Känner 2024-05-20 20:37:11 +02:00
parent d712b4d00d
commit 3667246bf0
2 changed files with 38 additions and 43 deletions

View File

@ -18,6 +18,7 @@
greetd.enable = true; greetd.enable = true;
wifi.enable = true; wifi.enable = true;
wifi.tray = true; wifi.tray = true;
sway.enable = true;
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;

View File

@ -3,21 +3,16 @@
config, config,
pkgs, pkgs,
... ...
}: { }: let
cfg = config.sway;
in {
options = {
sway.enable = lib.mkEnableOption "sway";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dbus # make dbus-update-activation-environment available in the path dbus # make dbus-update-activation-environment available in the path
wayland
xdg-utils # for opening default programs when clicking links
glib # gsettings
dracula-theme # gtk theme
gnome3.adwaita-icon-theme # default gnome cursors
swaylock
swayidle
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin/stdout
mako # notification system developed by swaywm maintainer
wdisplays # tool to configure displays
libnotify libnotify
]; ];
@ -42,11 +37,10 @@
}; };
# make brightness keys work # make brightness keys work
users.users.max.extraGroups = ["video"]; users.users.max.extraGroups = ["video" "input"];
programs.light.enable = true; programs.light.enable = true;
# make swaylock work # make swaylock work
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
};
users.extraUsers.max.extraGroups = ["input"];
} }