refactor: remove dead _generatedGuestConfig option
The _generatedGuestConfig option was declared and read but never set by any module, making it always evaluate to []. Remove the declaration and simplify getEffectiveGuestConfig to read only from netvmInjections. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
033a2b7375
commit
b1bb3ad7cd
2 changed files with 1 additions and 8 deletions
|
|
@ -26,8 +26,7 @@ let
|
|||
|
||||
getEffectiveInterfaces = helpers.getEffectiveInterfaces cfg._internal.netvmInjections;
|
||||
|
||||
getEffectiveGuestConfig =
|
||||
vm: vm._generatedGuestConfig ++ (cfg._internal.netvmInjections.${vm.name}.guestConfig or [ ]);
|
||||
getEffectiveGuestConfig = vm: cfg._internal.netvmInjections.${vm.name}.guestConfig or [ ];
|
||||
|
||||
userUid = config.users.users.${cfg.user}.uid;
|
||||
userGid = config.users.groups.${config.users.users.${cfg.user}.group}.gid;
|
||||
|
|
|
|||
|
|
@ -809,12 +809,6 @@ let
|
|||
description = "Per-VM cloud-hypervisor configuration overrides.";
|
||||
};
|
||||
|
||||
_generatedGuestConfig = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.deferredModule;
|
||||
default = [ ];
|
||||
internal = true;
|
||||
description = "Auto-generated guest NixOS modules (e.g., nftables for netvms). Do not set manually.";
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue