mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
deprecations: add deprecations/removal module
Add a module for consolidating the module level deprecations in an easier to spot location. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
5b45dcf479
commit
3f07ce05c3
2 changed files with 24 additions and 18 deletions
22
modules/deprecations.nix
Normal file
22
modules/deprecations.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [ "services" "password-store-sync" ] ''
|
||||
Use services.git-sync instead.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "services" "keepassx" ] ''
|
||||
KeePassX is no longer maintained.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "programs" "thefuck" ] ''
|
||||
The corresponding package was removed from nixpkgs,
|
||||
consider using `programs.pay-respects` instead.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "programs" "octant" ] ''
|
||||
Octant is no longer maintained and project was archived.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "services" "barrier" ] ''
|
||||
The corresponding package was removed from nixpkgs,
|
||||
consider using `deskflow` or `input-leap` instead.
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
|
@ -67,24 +67,8 @@ let
|
|||
# keep-sorted end
|
||||
(pkgs.path + "/nixos/modules/misc/assertions.nix")
|
||||
(pkgs.path + "/nixos/modules/misc/meta.nix")
|
||||
|
||||
(lib.mkRemovedOptionModule [ "services" "password-store-sync" ] ''
|
||||
Use services.git-sync instead.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "services" "keepassx" ] ''
|
||||
KeePassX is no longer maintained.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "programs" "thefuck" ] ''
|
||||
The corresponding package was removed from nixpkgs,
|
||||
consider using `programs.pay-respects` instead.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "programs" "octant" ] ''
|
||||
Octant is no longer maintained and project was archived.
|
||||
'')
|
||||
(lib.mkRemovedOptionModule [ "services" "barrier" ] ''
|
||||
The corresponding package was removed from nixpkgs,
|
||||
consider using `deskflow` or `input-leap` instead.
|
||||
'')
|
||||
# Module deprecations and removals
|
||||
./deprecations.nix
|
||||
]
|
||||
++ (lib.concatMap
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue