mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 21:29:48 +01:00
just: simplify
This commit is contained in:
parent
9632dbb67d
commit
9447730c9a
1 changed files with 9 additions and 15 deletions
|
@ -1,22 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
cfg = config.programs.just;
|
|
||||||
|
|
||||||
in {
|
|
||||||
meta.maintainers = [ hm.maintainers.maximsmol ];
|
|
||||||
|
|
||||||
|
{
|
||||||
imports = let
|
imports = let
|
||||||
msg = ''
|
msg = ''
|
||||||
'program.just' is deprecated, simply add 'pkgs.just' to 'home.packages' instead.
|
'program.just' is deprecated, simply add 'pkgs.just' to 'home.packages' instead.
|
||||||
See https://github.com/nix-community/home-manager/issues/3449#issuecomment-1329823502'';
|
See https://github.com/nix-community/home-manager/issues/3449#issuecomment-1329823502'';
|
||||||
in [
|
|
||||||
(mkRemovedOptionModule [ "programs" "just" "enable" ] msg)
|
removed = opt: lib.mkRemovedOptionModule [ "programs" "just" opt ] msg;
|
||||||
(mkRemovedOptionModule [ "programs" "just" "enableBashIntegration" ] msg)
|
in map removed [
|
||||||
(mkRemovedOptionModule [ "programs" "just" "enableZshIntegration" ] msg)
|
"enable"
|
||||||
(mkRemovedOptionModule [ "programs" "just" "enableFishIntegration" ] msg)
|
"enableBashIntegration"
|
||||||
|
"enableZshIntegration"
|
||||||
|
"enableFishIntegration"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue