mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
shell: DRY shellIntegrationParameters
This commit is contained in:
committed by
Austin Horstman
parent
887e96cf30
commit
856b01ebd1
@@ -1,5 +1,11 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
shellIntegrationParameters = {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
in
|
||||
{
|
||||
options.home.shell = {
|
||||
enableShellIntegration = lib.mkOption {
|
||||
@@ -19,25 +25,10 @@
|
||||
'';
|
||||
};
|
||||
|
||||
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
enableIonIntegration = lib.hm.shell.mkIonIntegrationOption {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
enableNushellIntegration = lib.hm.shell.mkNushellIntegrationOption {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption {
|
||||
inherit config;
|
||||
baseName = "Shell";
|
||||
};
|
||||
enableBashIntegration = lib.hm.shell.mkBashIntegrationOption shellIntegrationParameters;
|
||||
enableFishIntegration = lib.hm.shell.mkFishIntegrationOption shellIntegrationParameters;
|
||||
enableIonIntegration = lib.hm.shell.mkIonIntegrationOption shellIntegrationParameters;
|
||||
enableNushellIntegration = lib.hm.shell.mkNushellIntegrationOption shellIntegrationParameters;
|
||||
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption shellIntegrationParameters;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user