Do not install python on neelix.

This commit is contained in:
Tom Alexander 2025-01-23 21:15:48 -05:00
parent e1a274c88e
commit cd8e9002d0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 29 additions and 13 deletions

View File

@ -44,7 +44,8 @@
me.kubernetes.enable = true; me.kubernetes.enable = true;
me.latex.enable = true; me.latex.enable = true;
me.launch_keyboard.enable = true; me.launch_keyboard.enable = true;
me.sway.enable = true;
me.lvfs.enable = true; me.lvfs.enable = true;
me.media.enable = true; me.media.enable = true;
me.python.enable = true;
me.sway.enable = true;
} }

View File

@ -8,6 +8,18 @@
{ {
imports = [ ]; imports = [ ];
options.me = {
python.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install python.";
};
};
config = lib.mkIf config.me.python.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(python3.withPackages (python-pkgs: [ (python3.withPackages (python-pkgs: [
python-pkgs.distro # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py python-pkgs.distro # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
@ -20,4 +32,7 @@
isort isort
black black
]; ];
}
]
);
} }