Shell goodness
Also potential for RCE, yay?
This commit is contained in:
parent
6d6a991fa5
commit
6b662477c4
hm
|
@ -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 = [
|
||||
|
|
|
@ -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
17
hm/shell/direnv.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue