1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Fix Nu scripts

This commit is contained in:
RGBCube 2023-11-06 11:51:03 +03:00
parent 89fb6b66fa
commit 9cc5d1f737
No known key found for this signature in database
3 changed files with 686 additions and 453 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
{ lib, pkgs, systemConfiguration, homeConfiguration, enabled, ... }: lib.recursiveUpdate
{ lib, pkgs, systemConfiguration, homeConfiguration, homePackages, enabled, ... }: lib.recursiveUpdate3
(systemConfiguration {
users.users.nixos.shell = pkgs.nushell;
@ -17,3 +17,7 @@
};
};
})
(with pkgs; homePackages "nixos" [
carapace
])

View file

@ -1,26 +1,6 @@
let-env ENV_CONVERSIONS = {
"PATH": {
from_string: { |string|
$string
| split row (char esep)
| path expand -n
$env.ENV_CONVERSIONS = {
"PATH": {
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
}
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')
]