From 45914cf7ea043b025edb62b38818a3ac858e7d22 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 17 Jan 2024 15:02:27 +0100 Subject: [PATCH] Try and add devshell commands to desktop --- nixos/desktop/configuration.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index 07c9017..9c1cd86 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -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;