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:
parent
27065ad008
commit
7201ac5acc
2 changed files with 8 additions and 12 deletions
|
@ -24,3 +24,8 @@ let-env NU_PLUGIN_DIRS = [
|
|||
| path dirname
|
||||
| path join 'plugins')
|
||||
]
|
||||
|
||||
def venv [] {
|
||||
virtualenv venv
|
||||
source ./venv/bin/activate.nu
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
})
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue