Disable system-wide sway extra packages

restic-rest-server
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, ... }: { 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;
} }

View File

@ -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