Skip to content

Commit

Permalink
config: add aliases for "education shell"
Browse files Browse the repository at this point in the history
i have one big devshell with all the "education dependencies", i.e. the
exact right version of java, python (with deps), etc. ideally i'd have
one dev-shell per course, but i want to avoid it copying the entire
course into the nix store, hence this extra indirection of `/shell` in
the education folder.

bit of speculation, but perhaps one day it could search upwards (from
the current directory) till it finds a parent directory with a `/shell`
directory, then execute `nom develop` on that. that way i could avoid
copying everything into the nix store, but also have per-course
devshells. definitely worth a thought!
  • Loading branch information
mibmo committed Feb 2, 2025
1 parent 3cd9c5a commit db73d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ let
tmp = "pushd $(mktemp -d)";
gc-nix = "${inhibit} nix-env --delete-generations +3 && nix store gc --verbose && nix store optimise --verbose";
inhibit = "gnome-session-inhibit";
edushell = "nom develop $HOME/assets/education/shell";
edushell-offline = "${edushell} --offline";
};

functions = {
Expand Down

0 comments on commit db73d32

Please sign in to comment.