Try and add devshell commands to desktop

This commit is contained in:
Lillian Violet 2024-01-17 15:02:27 +01:00
parent 53da8fcb90
commit 45914cf7ea

View file

@ -59,6 +59,7 @@
# System tools # System tools
age age
alejandra alejandra
direnv
docker docker
docker-compose docker-compose
git-filter-repo git-filter-repo
@ -89,8 +90,35 @@
# User tools # User tools
noisetorch 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 # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;