cringethon
This commit is contained in:
parent
ea0f707516
commit
ca7419c377
5 changed files with 12 additions and 26 deletions
|
|
@ -76,8 +76,9 @@
|
|||
# python
|
||||
# pypy3
|
||||
python3
|
||||
uv
|
||||
ruff
|
||||
ty
|
||||
uv
|
||||
python312
|
||||
|
||||
# rust
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@
|
|||
services.gnome.gcr-ssh-agent.enable = false;
|
||||
|
||||
services.printing.enable = lib.mkDefault true;
|
||||
services.printing.drivers = with pkgs; lib.mkDefault [gutenprint gutenprintBin];
|
||||
services.printing.drivers = with pkgs; lib.mkDefault [gutenprint gutenprintBin hplip];
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
layout_python_uv() {
|
||||
local python=${1:-python}
|
||||
[[ $# -gt 0 ]] && shift
|
||||
unset PYTHONHOME
|
||||
local python_version=$($python -V | cut -d " " -f 2 | cut -d . -f 1-2)
|
||||
if [[ -z $python_version ]]; then
|
||||
log_error "Could not find python's version"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -n "${VIRTUAL_ENV:-}" ]]; then
|
||||
local REPLY
|
||||
realpath.absolute "$VIRTUAL_ENV"
|
||||
VIRTUAL_ENV=$REPLY
|
||||
else
|
||||
VIRTUAL_ENV=$(direnv_layout_dir)/python-$python_version
|
||||
fi
|
||||
if [[ ! -d $VIRTUAL_ENV ]]; then
|
||||
uv venv -p $python "$@" "$VIRTUAL_ENV"
|
||||
fi
|
||||
export VIRTUAL_ENV
|
||||
PATH_add "$VIRTUAL_ENV/bin"
|
||||
}
|
||||
|
|
@ -80,6 +80,14 @@
|
|||
"typst"
|
||||
];
|
||||
language = [
|
||||
{
|
||||
name = "python";
|
||||
auto-format = true;
|
||||
# formatter = {
|
||||
# command = "ruff";
|
||||
# args = ["format"];
|
||||
# };
|
||||
}
|
||||
{
|
||||
name = "typst";
|
||||
text-width = 100;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ $env.NU_PLUGIN_DIRS = [
|
|||
]
|
||||
|
||||
# To add entries to PATH (on Windows you might use Path), you can use the following pattern:
|
||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '/home/tao/.cargo/bin')
|
||||
$env.PATH = ($env.PATH | split row (char esep) | prepend '/home/tao/.local/bin')
|
||||
|
||||
$env.GOPATH = '/home/tao/.go'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue