Disable system-wide sway extra packages

This commit is contained in:
Simon Bruder 2020-12-05 20:39:41 +01:00
parent 29cfc3750d
commit e53f2882f4
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
{ config, lib, pkgs, ... }:
lib.mkIf config.sbruder.gui.enable {
programs.sway.enable = true; # actual configuration happens in home-manager
# used to set up system wide configuration, actual configuration happens in
# home-manager
programs.sway = {
enable = true;
extraPackages = [ ];
};
services.logind.lidSwitchDocked = config.services.logind.lidSwitch;
}

View file

@ -219,10 +219,10 @@ lib.mkIf config.sbruder.gui.enable {
extraConfig = ''
# Auto lock
exec ${pkgs.swayidle}/bin/swayidle -w \
timeout 300 "swaylock -f -i ${wallpaper}" \
timeout 300 "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}" \
timeout 300 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep "swaylock -f -i ${wallpaper}"
before-sleep "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}"
# Cursor
seat seat0 xcursor_theme Adwaita