Shell goodness

Also potential for RCE, yay?
This commit is contained in:
Geoffrey Frogeye 2025-01-21 23:01:21 +01:00
parent 6d6a991fa5
commit 6b662477c4
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 33 additions and 5 deletions

View file

@ -1,20 +1,18 @@
{
pkgs,
lib,
config,
...
}:
{
config = lib.mkIf config.programs.less.enable {
config = {
programs.powerline-go = {
enable = true;
modules = [
"user"
"host"
"venv"
"direnv"
"cwd"
"perms"
"nix-shell"
"venv"
"git"
];
modulesRight = [

View file

@ -40,10 +40,23 @@ in
expireDuplicatesFirst = true;
};
shellAliases = cfg.shellAliases;
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.8.0";
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
};
}
];
};
};
};
imports = [
./atuin.nix
./direnv.nix
];
}

17
hm/shell/direnv.nix Normal file
View file

@ -0,0 +1,17 @@
# Allow switching to a specific environment when going into a directory
{
...
}:
{
config = {
programs = {
direnv = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
git.ignores = [ ".envrc" ".direnv" ];
};
};
}