mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix Nu scripts
This commit is contained in:
parent
89fb6b66fa
commit
9cc5d1f737
3 changed files with 686 additions and 453 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, systemConfiguration, homeConfiguration, enabled, ... }: lib.recursiveUpdate
|
{ lib, pkgs, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate3
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
users.users.nixos.shell = pkgs.nushell;
|
users.users.nixos.shell = pkgs.nushell;
|
||||||
|
@ -17,3 +17,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(with pkgs; homePackages "nixos" [
|
||||||
|
carapace
|
||||||
|
])
|
||||||
|
|
|
@ -1,26 +1,6 @@
|
||||||
let-env ENV_CONVERSIONS = {
|
$env.ENV_CONVERSIONS = {
|
||||||
"PATH": {
|
"PATH": {
|
||||||
from_string: { |string|
|
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
|
||||||
$string
|
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
|
||||||
| split row (char esep)
|
|
||||||
| path expand -n
|
|
||||||
}
|
}
|
||||||
to_string: { |value|
|
|
||||||
$value
|
|
||||||
| path expand -n
|
|
||||||
| str join (char esep)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$env.NU_LIB_DIRS = [
|
|
||||||
($nu.config-path
|
|
||||||
| path dirname
|
|
||||||
| path join 'scripts')
|
|
||||||
]
|
|
||||||
|
|
||||||
$env.NU_PLUGIN_DIRS = [
|
|
||||||
($nu.config-path
|
|
||||||
| path dirname
|
|
||||||
| path join 'plugins')
|
|
||||||
]
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue