1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

deprecations: move just module deprecation to new module

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-05 19:30:36 -05:00
parent 3f07ce05c3
commit 6f4021da5d
2 changed files with 16 additions and 19 deletions

View file

@ -18,5 +18,20 @@
The corresponding package was removed from nixpkgs,
consider using `deskflow` or `input-leap` instead.
'')
];
]
# Just module removal
++ (map
(
opt:
lib.mkRemovedOptionModule [ "programs" "just" opt ] ''
'program.just' is deprecated, simply add 'pkgs.just' to 'home.packages' instead.
See https://github.com/nix-community/home-manager/issues/3449#issuecomment-1329823502''
)
[
"enable"
"enableBashIntegration"
"enableZshIntegration"
"enableFishIntegration"
]
);
}

View file

@ -1,18 +0,0 @@
{ lib, ... }:
{
imports =
let
msg = ''
'program.just' is deprecated, simply add 'pkgs.just' to 'home.packages' instead.
See https://github.com/nix-community/home-manager/issues/3449#issuecomment-1329823502'';
removed = opt: lib.mkRemovedOptionModule [ "programs" "just" opt ] msg;
in
map removed [
"enable"
"enableBashIntegration"
"enableZshIntegration"
"enableFishIntegration"
];
}