1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-02 13:07:46 +00:00

Compare commits

..

No commits in common. "6178801ec3f0210aaae3fb8286970614f70fd705" and "c5d9a39ed521d13c4b13fa637a11cd4a58973ee6" have entirely different histories.

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: let { config, lib, pkgs, ... }: let
inherit (lib) attrValues const enabled getExe mapAttrs mkIf optionalAttrs readFile removeAttrs replaceString; inherit (lib) attrValues enabled filter first foldl' getExe last match mkIf nameValuePair optionalAttrs readFile removeAttrs splitString;
in { in {
environment = optionalAttrs config.isLinux { environment = optionalAttrs config.isLinux {
sessionVariables.SHELLS = getExe pkgs.nushell; sessionVariables.SHELLS = getExe pkgs.nushell;
@ -103,12 +103,6 @@ in {
}; };
}; };
programs.direnv = enabled {
nix-direnv = enabled;
enableNushellIntegration = true;
};
programs.nushell = enabled { programs.nushell = enabled {
configFile.text = readFile ./config.nu; configFile.text = readFile ./config.nu;
envFile.text = readFile ./environment.nu; envFile.text = readFile ./environment.nu;
@ -131,8 +125,7 @@ in {
# |> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue)) # |> map (keyAndValue: nameValuePair (first keyAndValue) (last keyAndValue))
# |> foldl' (x: y: x // y) {}; # |> foldl' (x: y: x // y) {};
homeVariablesExtra = {}; homeVariablesExtra = {};
in environmentVariables // homeVariables // homeVariablesExtra in environmentVariables // homeVariables // homeVariablesExtra;
|> mapAttrs (const <| replaceString "$HOME" homeConfig.home.homeDirectory);
shellAliases = removeAttrs config.environment.shellAliases [ "ls" "l" ] // { shellAliases = removeAttrs config.environment.shellAliases [ "ls" "l" ] // {
cdtmp = "cd (mktemp --directory)"; cdtmp = "cd (mktemp --directory)";