Adding a VERY basic Python3 Config

This commit is contained in:
Annika Merris 2024-05-21 11:22:02 -04:00
parent c0cb948532
commit e2dea1a7b4
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
{
options = {
python3 = {
enable = lib.mkEnableOption {
description = "Enable python3";
default = false;
};
};
};
config = lib.mkIf (config.python3.enable) {
home-manager.users.${config.user} = {
environment.systemPackages = [
pkgs.python3
];
};
};
}