diff options
author | Florian Klink <flokli@flokli.de> | 2023-09-12 22:57:31 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2023-09-12 22:57:31 +0200 |
commit | 5d3ca06db30c6c2d089ce72bc3d87e50c7231249 (patch) | |
tree | eb3b9a053c3b44da874694920a338711927da1b9 /nixos/modules/services | |
parent | 8606f6c8e182cb56e1c7c54fd6361f7ca1870be6 (diff) | |
download | nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar.gz nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar.bz2 nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar.lz nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar.xz nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.tar.zst nixlib-5d3ca06db30c6c2d089ce72bc3d87e50c7231249.zip |
nixos/modemmanager: remove enableBundledFccUnlockScripts option
This removes the networking.networkmanager.enableBundledFccUnlockScripts option, and updates the release notes.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/networking/networkmanager.nix | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index 04e43ba49e98..6bc46a9a90e4 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -370,18 +370,6 @@ in ''; }; - enableBundledFccUnlockScripts = mkOption { - type = types.bool; - default = false; - description = lib.mdDoc '' - Enable FCC unlock procedures shipped with ModemManager. - Since release 1.18.4, the ModemManager daemon no longer - automatically performs the FCC unlock procedure by default. See - [the docs](https://modemmanager.org/docs/modemmanager/fcc-unlock/) - for more details. - ''; - }; - fccUnlockScripts = mkOption { type = types.listOf (types.submodule { options = { @@ -410,7 +398,13 @@ in [ "networking" "networkmanager" "packages" ] [ "networking" "networkmanager" "plugins" ]) (mkRenamedOptionModule [ "networking" "networkmanager" "useDnsmasq" ] [ "networking" "networkmanager" "dns" ]) - (mkRenamedOptionModule [ "networking" "networkmanager" "enableFccUnlock" ] [ "networking" "networkmanager" "enableBundledFccUnlockScripts" ]) + (mkRemovedOptionModule [ "networking" "networkmanager" "enableFccUnlock" ] '' + This option was removed, because using bundled FCC unlock scripts is risky, + might conflict with vendor-provided unlock scripts, and should + be a conscious decision on a per-device basis. + Instead it's recommended to use the + `networking.networkmanager.fccUnlockScripts` option. + '') (mkRemovedOptionModule [ "networking" "networkmanager" "dynamicHosts" ] '' This option was removed because allowing (multiple) regular users to override host entries affecting the whole system opens up a huge attack @@ -539,16 +533,6 @@ in ]; } - # if cfg.enableBundledFccUnlockScripts is set, populate - # networking.networkmanager.fccUnlockScripts with the values from - # pkgs.modemmanager.passthru.fccUnlockScripts. - (mkIf cfg.enableBundledFccUnlockScripts { - networkmanager.fccUnlockScripts = lib.optionals cfg.enableBundledFccUnlockScripts - lib.mapAttrsToList - (id: path: { inherit id path; }) - pkgs.modemmanager.passthru.fccUnlockScripts; - }) - (mkIf cfg.enableStrongSwan { networkmanager.plugins = [ pkgs.networkmanager_strongswan ]; }) |