File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
nixos/modules/services/networking Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 129129
130130 packages =
131131 [
132- pkgs . networkmanager
132+ cfg . package
133133 ]
134134 ++ cfg . plugins
135135 ++ lib . optionals ( ! delegateWireless && ! enableIwd ) [
161161 '' ;
162162 } ;
163163
164+ package = mkPackageOption pkgs "networkmanager" { } ;
165+
164166 connectionConfig = mkOption {
165167 type =
166168 with types ;
643645 ${ pkgs . envsubst } /bin/envsubst -i ${ ini . generate ( lib . escapeShellArg profile . n ) profile . v } > ${ path ( lib . escapeShellArg profile . n ) }
644646 '' ) ( lib . mapAttrsToList ( n : v : { inherit n v ; } ) cfg . ensureProfiles . profiles )
645647 + ''
646- ${ pkgs . networkmanager } /bin/nmcli connection reload
648+ ${ cfg . package } /bin/nmcli connection reload
647649 '' ;
648650 serviceConfig = {
649651 EnvironmentFile = cfg . ensureProfiles . environmentFiles ;
You can’t perform that action at this time.
0 commit comments