pinwheel: Add python module
This commit is contained in:
20
hosts/pinwheel/modules/python/default.nix
Normal file
20
hosts/pinwheel/modules/python/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user