2.home-manager/tests/modules/programs/swaylock/default.nix
Austin Horstman 45e3b622b1 swaylock: warn on implicit enable default
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>
2026-03-22 11:46:51 -05:00

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;
}