Disable system-wide sway extra packages
This commit is contained in:
parent
29cfc3750d
commit
e53f2882f4
|
@ -1,7 +1,12 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
lib.mkIf config.sbruder.gui.enable {
|
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;
|
services.logind.lidSwitchDocked = config.services.logind.lidSwitch;
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,10 +219,10 @@ lib.mkIf config.sbruder.gui.enable {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Auto lock
|
# Auto lock
|
||||||
exec ${pkgs.swayidle}/bin/swayidle -w \
|
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"' \
|
timeout 300 'swaymsg "output * dpms off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
before-sleep "swaylock -f -i ${wallpaper}"
|
before-sleep "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}"
|
||||||
|
|
||||||
# Cursor
|
# Cursor
|
||||||
seat seat0 xcursor_theme Adwaita
|
seat seat0 xcursor_theme Adwaita
|
||||||
|
|
Loading…
Reference in a new issue