This commit is contained in:
sadan 2024-12-18 18:54:34 -05:00
parent 7dd6913f08
commit 0a7223bd6b
No known key found for this signature in database
6 changed files with 176 additions and 101 deletions

View file

@ -21,7 +21,7 @@ in
../../../../customPackages
];
home = {
packages = with pkgs; [
packages = [
# env for clipboard command will be required by their respective environemnts
(mkScript {
name = "paste";
@ -34,12 +34,12 @@ in
(mkScript {
name = "http2ssh";
file = ./http2ssh.sh;
env = [git];
env = [pkgs.git];
})
(mkScript {
name = "git_fetchAll";
file = ./git_fetchAll.sh;
env = [git];
env = [pkgs.git];
})
(mkScript {
name = "install_eslint";
@ -48,12 +48,17 @@ in
(mkScript {
name = "math";
file = ./math.sh;
env = [python3];
env = [pkgs.python3];
})
(mkScript {
name = "hashi18n";
file = ./hashi18n.sh;
})
(mkScript {
name = "flakeify";
file = ./flakeify.sh;
deps = [pkgs.direnv];
})
];
file = {
scripts = {

View file

@ -0,0 +1,7 @@
if [ ! -e flake.nix ]; then
nix flake new -t github:nix-community/nix-direnv .
elif [ ! -e .envrc ]; then
echo "use flake" > .envrc
direnv allow
fi
${EDITOR:-vim} flake.nix

View file

@ -27,6 +27,13 @@ in
};
};
programs = {
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv = {
enable = true;
};
};
zoxide = {
enable = true;
enableZshIntegration = true;