diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index 4c06f0aad9f8..1ffa7fe56109 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -10,7 +10,7 @@ let cfg = config.programs.bash; bashAliases = builtins.concatStringsSep "\n" ( - lib.mapAttrsFlatten (k: v: "alias -- ${k}=${lib.escapeShellArg v}") + lib.mapAttrsToList (k: v: "alias -- ${k}=${lib.escapeShellArg v}") (lib.filterAttrs (k: v: v != null) cfg.shellAliases) ); diff --git a/nixos/modules/programs/fish.nix b/nixos/modules/programs/fish.nix index 5a6fdb9b5ec5..ef31a404bcb8 100644 --- a/nixos/modules/programs/fish.nix +++ b/nixos/modules/programs/fish.nix @@ -7,12 +7,12 @@ let cfg = config.programs.fish; fishAbbrs = lib.concatStringsSep "\n" ( - lib.mapAttrsFlatten (k: v: "abbr -ag ${k} ${lib.escapeShellArg v}") + lib.mapAttrsToList (k: v: "abbr -ag ${k} ${lib.escapeShellArg v}") cfg.shellAbbrs ); fishAliases = lib.concatStringsSep "\n" ( - lib.mapAttrsFlatten (k: v: "alias ${k} ${lib.escapeShellArg v}") + lib.mapAttrsToList (k: v: "alias ${k} ${lib.escapeShellArg v}") (lib.filterAttrs (k: v: v != null) cfg.shellAliases) ); diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 35d2cf461056..820d8daf81f1 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -10,7 +10,7 @@ let opt = options.programs.zsh; zshAliases = builtins.concatStringsSep "\n" ( - lib.mapAttrsFlatten (k: v: "alias -- ${k}=${lib.escapeShellArg v}") + lib.mapAttrsToList (k: v: "alias -- ${k}=${lib.escapeShellArg v}") (lib.filterAttrs (k: v: v != null) cfg.shellAliases) ); diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix index 4a00cdc64975..fba6d5e48f92 100644 --- a/nixos/modules/services/networking/openvpn.nix +++ b/nixos/modules/services/networking/openvpn.nix @@ -223,7 +223,7 @@ in config = mkIf (cfg.servers != { }) { - systemd.services = (listToAttrs (mapAttrsFlatten (name: value: nameValuePair "openvpn-${name}" (makeOpenVPNJob value name)) cfg.servers)) + systemd.services = (listToAttrs (mapAttrsToList (name: value: nameValuePair "openvpn-${name}" (makeOpenVPNJob value name)) cfg.servers)) // restartService; environment.systemPackages = [ openvpn ];