1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 02:57:44 +00:00

shell: fix aliases

This commit is contained in:
RGBCube 2025-07-26 01:12:17 +03:00
parent f673d73cd2
commit 3e466fcaf0
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
3 changed files with 14 additions and 3 deletions

View file

@ -15,9 +15,11 @@ in {
programs.nushell = enabled {
inherit package;
inherit (config.environment) shellAliases;
inherit environmentVariables;
shellAliases = config.environment.shellAliases
|> filterAttrs (_: value: value != null);
configFile.text = readFile ./0_nushell.nu;
};
})];

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: let
inherit (lib) concatStringsSep const flatten getAttr mapAttrsToList unique;
inherit (lib) concatStringsSep const flatten getAttr mapAttrsToList mkForce unique;
in {
users.defaultUserShell = pkgs.crash;
@ -12,4 +12,9 @@ in {
|> map (drv: "${drv}${drv.shellPath}")
|> unique
|> concatStringsSep ":";
environment.shellAliases = {
ls = mkForce null;
l = mkForce null;
};
}