diff --git a/hosts/pinwheel/home.nix b/hosts/pinwheel/home.nix index ae00f4d..de75fd7 100644 --- a/hosts/pinwheel/home.nix +++ b/hosts/pinwheel/home.nix @@ -24,7 +24,6 @@ pkgs.wdisplays pkgs.ungoogled-chromium pkgs.unar - pkgs.python3 ]; home.stateVersion = "23.05"; diff --git a/hosts/pinwheel/modules/default.nix b/hosts/pinwheel/modules/default.nix index 26c8135..e51ceea 100644 --- a/hosts/pinwheel/modules/default.nix +++ b/hosts/pinwheel/modules/default.nix @@ -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; diff --git a/hosts/pinwheel/modules/python/default.nix b/hosts/pinwheel/modules/python/default.nix new file mode 100644 index 0000000..5887a21 --- /dev/null +++ b/hosts/pinwheel/modules/python/default.nix @@ -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 + ]; + }; + }; +}