From 27065ad008c912030aed466b3bf5d6d62a86e943 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 27 May 2023 21:06:09 +0300 Subject: [PATCH] Add venv alias again --- machines/asus/python/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/machines/asus/python/default.nix b/machines/asus/python/default.nix index f375b25..59268d8 100644 --- a/machines/asus/python/default.nix +++ b/machines/asus/python/default.nix @@ -1,10 +1,19 @@ -{ pkgs, systemPackages, ... }: +{ lib, pkgs, systemPackages, homeConfiguration, ... }: lib.recursiveUpdate -with pkgs; systemPackages [ +(with pkgs; systemPackages [ (python311.withPackages (pkgs: with pkgs; [ pip requests ])) virtualenv poetry -] +]) + +(homeConfiguration "nixos" { + programs.nushell.envFile.source = '' + def venv [] { + virtualenv venv + source ./venv/bin/activate.nu + } + ''; +})