Before 23.05, programs.swaylock.enable implicitly followed whether programs.swaylock.settings was non-empty. That compatibility path was still active for older state versions, but it emitted no warning. Route the default through the shared state-version helper so legacy users get the standard deprecation warning before the implicit enable behavior is removed. Add a focused current-state-version test and keep the existing legacy and explicit-enable coverage in place. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
8 lines
326 B
Nix
8 lines
326 B
Nix
{ lib, pkgs, ... }:
|
|
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
|
swaylock-current-default-disabled = import ./current-default-disabled.nix;
|
|
swaylock-disabled = import ./disabled.nix;
|
|
swaylock-settings = import ./settings.nix;
|
|
swaylock-enabled = import ./enabled.nix;
|
|
swaylock-legacy = import ./legacy.nix;
|
|
}
|