Configure nushell

This commit is contained in:
Alexander
2025-08-03 23:21:58 +02:00
parent 3608ae4fc3
commit b0c2bd1594
8 changed files with 77 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.dov.shell.nu;
in {
options.dov.shell.nu = {
enable = mkEnableOption "nushell config";
shellAliases = mkOption {
type = types.attrs;
default = {};
};
};
config = mkIf cfg.enable {
programs.nushell = {
enable = true;
settings = {
};
} // (lib.optionalAttrs (cfg.shellAliases != null) {
shellAliases = cfg.shellAliases;
});
};
}