2024-12-31 07:37:48 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ];
|
|
|
|
|
2025-01-23 21:15:48 -05:00
|
|
|
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; [
|
|
|
|
(python3.withPackages (python-pkgs: [
|
|
|
|
python-pkgs.distro # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
|
|
|
python-pkgs.pyudev # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
|
|
|
python-pkgs.systemd # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
|
|
|
python-pkgs.packaging # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
|
|
|
]))
|
|
|
|
poetry
|
|
|
|
pyright
|
|
|
|
isort
|
|
|
|
black
|
|
|
|
];
|
|
|
|
}
|
|
|
|
]
|
|
|
|
);
|
2024-12-31 07:37:48 -05:00
|
|
|
}
|