feat: add nushell module
This commit is contained in:
parent
7a381aa807
commit
877a149127
@ -6,16 +6,9 @@
|
||||
}: {
|
||||
imports = lib.my.getHmModules [./.];
|
||||
|
||||
# my = {
|
||||
# difftastic.enable = true;
|
||||
# direnv.enable = true;
|
||||
# # helix.enable = true;
|
||||
# git.enable = true;
|
||||
# # gitui.enable = true;
|
||||
# neovim.enable = true;
|
||||
# yazi.enable = true;
|
||||
# zsh.enable = true;
|
||||
# };
|
||||
my = {
|
||||
nushell.enable = true;
|
||||
};
|
||||
|
||||
# let standalone home-manager and home-manager in nixos/nix-darwin use the same derivation
|
||||
home.packages = [
|
||||
|
23
common/nushell/home.nix
Normal file
23
common/nushell/home.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.my.nushell;
|
||||
in {
|
||||
options.my.nushell = {
|
||||
enable = mkEnableOption "nushell";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
$env.config = {
|
||||
edit_mode: vi
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user