pinwheel: Add python module
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
pkgs.wdisplays
|
pkgs.wdisplays
|
||||||
pkgs.ungoogled-chromium
|
pkgs.ungoogled-chromium
|
||||||
pkgs.unar
|
pkgs.unar
|
||||||
pkgs.python3
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|||||||
@@ -22,9 +22,12 @@ in
|
|||||||
git.enable = true;
|
git.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
|
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
scala.enable = true;
|
scala.enable = true;
|
||||||
|
python.enable = true;
|
||||||
|
|
||||||
keyboard.enable = true;
|
keyboard.enable = true;
|
||||||
containers = {
|
containers = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
|||||||
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