fix: pass home specialArgs to home in nixos module

This commit is contained in:
Jake Hamilton 2024-02-23 09:51:32 -08:00
parent 9b718da230
commit 11476c3b90
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68
4 changed files with 14 additions and 8 deletions

View file

@ -9,7 +9,7 @@ inputs @ {
cfg = config.snowfallorg;
# @NOTE(jakehamilton): The module system chokes if it finds `osConfig` named in the module arguments
# NOTE: The module system chokes if it finds `osConfig` named in the module arguments
# when being used in standalone home-manager. To remedy this, we have to refer to the arguments set directly.
os-user-home = inputs.osConfig.users.users.${cfg.name}.home or null;

View file

@ -62,7 +62,7 @@ in {
config = mkOption {
# HM-compatible options taken from:
# https://github.com/nix-community/home-manager/blob/0ee5ab611dc1fbb5180bd7d88d2aeb7841a4d179/nixos/common.nix#L14
# @NOTE(jakehamilton): This has been adapted to support documentation generation without
# NOTE: This has been adapted to support documentation generation without
# having home-manager options fully declared.
type = types.submoduleWith {
specialArgs =