1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Move venv function to environment.nu as it overrid

This commit is contained in:
RGBCube 2023-05-27 21:16:33 +03:00
parent 27065ad008
commit 7201ac5acc
No known key found for this signature in database
2 changed files with 8 additions and 12 deletions

View file

@ -24,3 +24,8 @@ let-env NU_PLUGIN_DIRS = [
| path dirname
| path join 'plugins')
]
def venv [] {
virtualenv venv
source ./venv/bin/activate.nu
}

View file

@ -1,19 +1,10 @@
{ lib, pkgs, systemPackages, homeConfiguration, ... }: lib.recursiveUpdate
{ pkgs, systemPackages, ... }:
(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
}
'';
})
]