home-modules/common: Add flake-src util
This commit is contained in:
parent
90a098c4e9
commit
788e476c01
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user