refactor(nixos): inline module enable conditions

This commit was merged in pull request #134.
This commit is contained in:
2026-10-06 22:26:47 -04:00
parent d53246caf0
commit f48bac5ec1
33 changed files with 33 additions and 78 deletions

View File

@@ -6,14 +6,13 @@
}:
# Python tools for the primary user's shell environment.
let
cfg = config.modules.shell.python; # NOLINT(let_order)
user = config.user.name;
in
{
options.modules.shell.python.enable =
lib.mkEnableOption "Python tools for the primary user's shell environment";
config = lib.mkIf cfg.enable {
config = lib.mkIf config.modules.shell.python.enable {
home-manager.users.${user}.home = {
sessionVariables.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
packages = [ pkgs.python3 ];