swaylock: avoid inadvertently installing Swaylock
Avoid inadvertently installing the Swaylock package by preventing the
Home Manager module from enabling itself when 'settings != {}' and the
state version is older than 23.05 [1].
[1]: 5cfbf5cc37/modules/programs/swaylock.nix (L12-L17)
Closes: https://github.com/danth/stylix/issues/843
Link: https://github.com/danth/stylix/pull/875
Tested-by: https://github.com/niksingh710
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
0779799431
commit
c424b22396
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,13 @@ in
|
|||
config.stylix.enable
|
||||
&& config.stylix.targets.swaylock.enable
|
||||
&& pkgs.stdenv.hostPlatform.isLinux
|
||||
|
||||
# Avoid inadvertently installing the Swaylock package by preventing the
|
||||
# Home Manager module from enabling itself when 'settings != {}' and the
|
||||
# state version is older than 23.05 [1].
|
||||
#
|
||||
# [1]: https://github.com/nix-community/home-manager/blob/5cfbf5cc37a3bd1da07ae84eea1b828909c4456b/modules/programs/swaylock.nix#L12-L17
|
||||
&& config.programs.swaylock.enable
|
||||
)
|
||||
{
|
||||
programs.swaylock.settings =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue