21 lines
418 B
Nix
21 lines
418 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.eboskma.programs.nushell;
|
|
in
|
|
{
|
|
options.eboskma.programs.nushell = { enable = mkEnableOption "nu shell"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nushell = {
|
|
enable = true;
|
|
configFile.source = ./config.nu;
|
|
envFile.source = ./env.nu;
|
|
|
|
extraConfig = ''
|
|
source ${./starship.nu}
|
|
source ${./zoxide.nu}
|
|
'';
|
|
};
|
|
};
|
|
}
|