mirror of
https://github.com/danth/stylix
synced 2024-11-28 15:10:41 +00:00
swaylock: remove optionalAttrs
(#420)
This commit is contained in:
parent
f060e4059b
commit
e59d2c1725
1 changed files with 29 additions and 32 deletions
|
@ -23,10 +23,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.swaylock.enable && pkgs.stdenv.hostPlatform.isLinux)
|
||||
# See https://github.com/danth/stylix/issues/8#issuecomment-1194484544
|
||||
# This check can be removed when programs.swaylock is in a stable release
|
||||
(lib.optionalAttrs (options.programs ? swaylock) {
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.swaylock.enable && pkgs.stdenv.hostPlatform.isLinux) {
|
||||
programs.swaylock.settings = {
|
||||
color = outside;
|
||||
scaling = "fill";
|
||||
|
@ -54,5 +51,5 @@ in {
|
|||
} // lib.optionalAttrs config.stylix.targets.swaylock.useImage {
|
||||
image = "${config.stylix.image}";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue