Add nushell

work
mat ess 2023-04-14 02:40:01 -04:00
parent 9e28f2b3e9
commit 038bfbf25a
4 changed files with 33 additions and 5 deletions

View File

@ -575,7 +575,8 @@
"nixpkgs": "nixpkgs",
"nixpkgs-master": "nixpkgs-master",
"nixpkgs-stable": "nixpkgs-stable",
"pre-commit": "pre-commit"
"pre-commit": "pre-commit",
"starship-src": "starship-src"
}
},
"rust-overlay": {
@ -599,6 +600,22 @@
"repo": "rust-overlay",
"type": "github"
}
},
"starship-src": {
"flake": false,
"locked": {
"lastModified": 1681432161,
"narHash": "sha256-Jj5kiT+9R4w2lhmtkwEqsF34MOw63MM/SRCRA5FQ1PY=",
"owner": "starship",
"repo": "starship",
"rev": "ce7f984932a97b4ad3cd6e6ece8e1c3b6022ba99",
"type": "github"
},
"original": {
"owner": "starship",
"repo": "starship",
"type": "github"
}
}
},
"root": "root",

View File

@ -39,6 +39,8 @@
kitty-themes.flake = false;
fisher-src.url = "github:jorgebucaran/fisher";
fisher-src.flake = false;
starship-src.url = "github:starship/starship";
starship-src.flake = false;
};
outputs =

View File

@ -18,7 +18,9 @@
};
nix-index = {
enable = true;
enableFishIntegration = true;
};
nushell = {
enable = true;
};
ssh = {
enable = true;
@ -27,14 +29,12 @@
AddKeysToAgent = "yes";
};
};
# vscode
vscode = {
enable = true;
# extensions = [ pijul-vscode ];
};
zoxide = {
enable = true;
enableFishIntegration = true;
};
};
# }}}

View File

@ -1,13 +1,22 @@
{ inputs }:
_: prev: {
inherit (inputs) kitty-icon kitty-themes;
helix = inputs.helix.packages.${prev.stdenv.system}.default;
fishPlugins = prev.fishPlugins // {
fisher = {
name = "fisher";
src = inputs.fisher-src;
};
};
helix = inputs.helix.packages.${prev.stdenv.system}.default;
starship = prev.starship.overrideDerivation (drv: {
patches = (drv.patches or [ ]) ++ [
(builtins.fetchurl {
name = "nushell.patch";
url = "https://github.com/starship/starship/commit/041a51835371d3738cc7b597b4a506a5dc4341c9.diff";
sha256 = "sha256:0az1jjb24mngzybgv7kavdj1bhfdm0cqnci3gz6zkgpaxqvw7vnz";
})
];
});
} // builtins.mapAttrs
(name: extras:
prev.callPackage