a dotfile but it's really big
1{
2 config,
3 lib,
4 pkgs,
5 self',
6 ...
7}:
8{
9 config = lib.mkIf config.dev.shell.enable {
10 home.packages = [ pkgs.moreutils ]; # vipe, chronic, pee
11 programs.nushell = {
12 enable = true;
13 shellAliases = {
14 k = "kubectl";
15 fg = "job unfreeze";
16 nn = "run-external $env.EDITOR ($env.HOME)/notes";
17 };
18 configFile.text = ''
19 $env.config = {show_banner: false}
20
21 source-env (if ("~/.profile.nu" | path exists) { "~/.profile.nu" } else null)
22
23 ${lib.getExe self'.packages.pokego} -l french
24 '';
25
26 extraLogin = ''
27 bash -c ". /etc/profile && env"
28 | parse "{n}={v}"
29 | where n not-in $env or v != ($env | get $it.n)
30 | where n not-in ["_", "LAST_EXIT_CODE", "DIRS_POSITION"]
31 | transpose --header-row
32 | into record
33 | load-env
34 '';
35 };
36 };
37}