Add python313 to personal machines with pipx, and add pipx to the

already existing 311 python on work machine
This commit is contained in:
Martin Larsson 2025-04-22 15:27:44 +02:00
parent 96f871f3e6
commit 2fda48bbb5
4 changed files with 33 additions and 4 deletions

View file

@ -1,10 +1,17 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home = {
packages = with pkgs; [
(python313.withPackages (pythonPkgs: [
pythonPkgs.pipx
]))
clang
clang-tools
];
};
home.activation.installVectorcode = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Installing VectorCode with pipx..."
$DRY_RUN_CMD ${pkgs.python311Packages.pipx}/bin/pipx install --force vectorcode
'';
}

View file

@ -1,9 +1,10 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home = {
packages = with pkgs; [
(python311.withPackages (pythonPkgs: [
pythonPkgs.pip
pythonPkgs.pipx
pythonPkgs.setuptools
]))
pcre
@ -12,4 +13,11 @@
];
};
(python313.withPackages (pythonPkgs: [
pythonPkgs.pipx
]))
home.activation.installVectorcode = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Installing VectorCode with pipx..."
$DRY_RUN_CMD ${pkgs.python311Packages.pipx}/bin/pipx install --force vectorcode
'';
}

View file

@ -1,12 +1,19 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home = {
packages = with pkgs; [
(python313.withPackages (pythonPkgs: [
pythonPkgs.pipx
]))
wl-clipboard-rs
sway
clang
clang-tools
];
home.activation.installVectorcode = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Installing VectorCode with pipx..."
$DRY_RUN_CMD ${pkgs.python311Packages.pipx}/bin/pipx install --force vectorcode
'';
file = {
".config/sway".source = ../sway;
};

View file

@ -1,10 +1,17 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
home = {
packages = with pkgs; [
(python313.withPackages (pythonPkgs: [
pythonPkgs.pipx
]))
wslu
clang
clang-tools
];
};
home.activation.installVectorcode = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Installing VectorCode with pipx..."
$DRY_RUN_CMD ${pkgs.python311Packages.pipx}/bin/pipx install --force vectorcode
'';
}