full refactor
This commit is contained in:
22
sw/python.nix
Normal file
22
sw/python.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.modules.sw.python;
|
||||
in {
|
||||
options.modules.sw.python = {
|
||||
enable = mkEnableOption "Python development tools (pixi, uv)";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
(pkgs.buildFHSEnv {
|
||||
name = "pixi";
|
||||
runScript = "pixi";
|
||||
targetPkgs = pkgs: with pkgs; [ pixi ];
|
||||
})
|
||||
pkgs.uv
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user