home-modules/common: Add flake-src util

This commit is contained in:
Jack O'Sullivan 2022-02-16 22:45:17 +00:00
parent 90a098c4e9
commit 788e476c01

View File

@ -40,6 +40,12 @@ in
bash = {
# This not only installs bash but has home-manager control .bashrc and friends
enable = mkDefault true;
initExtra =
''
flake-src() {
cd "$(nix eval "''${@:2}" --impure --raw --expr "builtins.getFlake \"$1\"")"
}
'';
};
direnv = {