pinwheel: Add python module

This commit is contained in:
Alexander Heldt
2024-06-15 13:13:49 +02:00
parent 7b4e3b4b01
commit fe9f616b15
3 changed files with 23 additions and 1 deletions

View File

@@ -24,7 +24,6 @@
pkgs.wdisplays
pkgs.ungoogled-chromium
pkgs.unar
pkgs.python3
];
home.stateVersion = "23.05";

View File

@@ -22,9 +22,12 @@ in
git.enable = true;
zsh.enable = true;
openvpn.enable = true;
go.enable = true;
rust.enable = true;
scala.enable = true;
python.enable = true;
keyboard.enable = true;
containers = {
docker.enable = true;

View File

@@ -0,0 +1,20 @@
{ pkgs, lib, config, ... }:
let
enabled = config.mod.python.enable;
in
{
options = {
mod.python = {
enable = lib.mkEnableOption "enable python module";
};
};
config = lib.mkIf enabled {
home-manager.users.alex = {
home.packages = [
pkgs.python3
pkgs.python312Packages.python-lsp-server
];
};
};
}