feat: Add python development services

This commit is contained in:
2025-12-04 15:56:34 -05:00
committed by Hunter Halloran
parent 2ad12ab729
commit 2f538ca018
4 changed files with 29 additions and 19 deletions

View File

@@ -1,5 +1,7 @@
{ pkgs, ... }:
let
pythonPkgs = import ./python.nix { inherit pkgs; };
in
{
# Define a user account. Don't forget to set a password with passwd.
users.users = {
@@ -10,7 +12,7 @@
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
];
] ++ pythonPkgs;
hashedPassword = "$6$El6e2NhPrhVFjbFU$imlGZqUiizWw5fMP/ib0CeboOcFhYjIVb8oR1V1dP2NjDeri3jMoUm4ZABOB2uAF8UEDjAGHhFuZxhtbHg647/";
};
@@ -20,11 +22,11 @@
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
];
] ++ pythonPkgs;
shell = pkgs.zsh;
};
};
# Home Manager configs per user
home-manager = {
useGlobalPkgs = true;

9
users/python.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
[
(pkgs.buildFHSEnv {
name = "pixi";
runScript = "pixi";
targetPkgs = pkgs: with pkgs; [ pixi ];
})
pkgs.uv
]