mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
mise: statically generate nushell config
This commit is contained in:
parent
3f47f72c97
commit
b47ea12ff4
2 changed files with 15 additions and 13 deletions
|
|
@ -129,12 +129,12 @@ in
|
|||
'';
|
||||
|
||||
nushell = mkIf (cfg.enableNushellIntegration && cfg.package != null) {
|
||||
extraEnv = ''
|
||||
let mise_path = $nu.default-config-dir | path join mise.nu
|
||||
^mise activate nu | save $mise_path --force
|
||||
'';
|
||||
extraConfig = ''
|
||||
use ($nu.default-config-dir | path join mise.nu)
|
||||
use ${
|
||||
pkgs.runCommand "mise-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} activate nu > $out
|
||||
''
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue