mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
just: simplify
This commit is contained in:
parent
91341cde41
commit
f1d4f49e71
1 changed files with 9 additions and 15 deletions
|
@ -1,22 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.programs.just;
|
||||
|
||||
in {
|
||||
meta.maintainers = [ hm.maintainers.maximsmol ];
|
||||
{ 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'';
|
||||
in [
|
||||
(mkRemovedOptionModule [ "programs" "just" "enable" ] msg)
|
||||
(mkRemovedOptionModule [ "programs" "just" "enableBashIntegration" ] msg)
|
||||
(mkRemovedOptionModule [ "programs" "just" "enableZshIntegration" ] msg)
|
||||
(mkRemovedOptionModule [ "programs" "just" "enableFishIntegration" ] msg)
|
||||
|
||||
removed = opt: lib.mkRemovedOptionModule [ "programs" "just" opt ] msg;
|
||||
in map removed [
|
||||
"enable"
|
||||
"enableBashIntegration"
|
||||
"enableZshIntegration"
|
||||
"enableFishIntegration"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue