refactor(bazel): inline the primary user

This commit is contained in:
2026-10-15 14:23:18 -04:00
parent 2b4e66a75c
commit 719370c8f7

View File

@@ -5,14 +5,11 @@
... ...
}: }:
# Bazel for the primary user's shell environment. # Bazel for the primary user's shell environment.
let
user = config.user.name;
in
{ {
options.modules.shell.bazel.enable = options.modules.shell.bazel.enable =
lib.mkEnableOption "Bazel for the primary user's shell environment"; lib.mkEnableOption "Bazel for the primary user's shell environment";
config = lib.mkIf config.modules.shell.bazel.enable { config = lib.mkIf config.modules.shell.bazel.enable {
home-manager.users.${user}.home.packages = [ pkgs.bazel ]; home-manager.users.${config.user.name}.home.packages = [ pkgs.bazel ];
}; };
} }