Try and add devshell commands to desktop

This commit is contained in:
Lillian Violet 2024-01-17 15:02:27 +01:00
parent 0517723e78
commit 20d57a2706

View file

@ -59,6 +59,7 @@
# System tools
age
alejandra
direnv
docker
docker-compose
git-filter-repo
@ -89,8 +90,35 @@
# User tools
noisetorch
writeShellApplication
{
name = "dvd";
runtimeInputs = [echo direnv];
text = ''
echo "use flake \"github:the-nix-way/dev-templates?dir=$1\"" >> .envrc
direnv allow
'';
}
writeShellApplication
{
name = "dvt";
runtimeInputs = [direnv nix];
text = ''
nix flake init -t "github:the-nix-way/dev-templates#$1"
direnv allow
'';
}
];
programs.direnv = {
enable = true;
};
# Enable networking
networking.networkmanager.enable = true;