fix: add option to not install package for sway / swaylock

avoid problems with nix on Debian
This commit is contained in:
Yorick Barbanneau 2024-06-19 01:03:52 +02:00
parent ce7338040e
commit dea3740249
4 changed files with 42 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
@ -7,6 +7,10 @@ in
config = mkIf config.modules.desktop.sway.enable {
programs.swaylock = {
enable = true;
package =
if cfg.installPackage
then pkgs.swaylock
else pkgs.emptyDirectory;
settings = {
image = "${cfg.wallpapers.lockscreen}";
scaling = "center";