diff options
author | WORLDofPEACE <worldofpeace@protonmail.ch> | 2020-09-02 08:45:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 08:45:37 -0400 |
commit | 18348c7829ae93ebe436497ca7ad96cdb8d39935 (patch) | |
tree | 4bb9090ed91bc41e15001193a8cd3f4f806cdc93 /nixos/modules/virtualisation | |
parent | 403414522acdafb3785af9ddbe883e23a7a8f5bb (diff) | |
parent | 3f8a3246f409513653a9e8739c69371af3e9f7b0 (diff) | |
download | nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar.gz nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar.bz2 nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar.lz nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar.xz nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.tar.zst nixpkgs-18348c7829ae93ebe436497ca7ad96cdb8d39935.zip |
Merge pull request #96042 from rnhmjoj/loaOf
treewide: completely remove types.loaOf
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/nixos-containers.nix | 2 | ||||
-rw-r--r-- | nixos/modules/virtualisation/railcar.nix | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix index b0fa03917c8..8fbb4efd201 100644 --- a/nixos/modules/virtualisation/nixos-containers.nix +++ b/nixos/modules/virtualisation/nixos-containers.nix @@ -627,7 +627,7 @@ in }; bindMounts = mkOption { - type = with types; loaOf (submodule bindMountOpts); + type = with types; attrsOf (submodule bindMountOpts); default = {}; example = literalExample '' { "/home" = { hostPath = "/home/alice"; diff --git a/nixos/modules/virtualisation/railcar.nix b/nixos/modules/virtualisation/railcar.nix index 3f188fc68e5..10464f62898 100644 --- a/nixos/modules/virtualisation/railcar.nix +++ b/nixos/modules/virtualisation/railcar.nix @@ -41,7 +41,7 @@ let description = "Source for the in-container mount"; }; options = mkOption { - type = loaOf (str); + type = attrsOf (str); default = [ "bind" ]; description = '' Mount options of the filesystem to be used. @@ -61,7 +61,7 @@ in containers = mkOption { default = {}; description = "Declarative container configuration"; - type = with types; loaOf (submodule ({ name, config, ... }: { + type = with types; attrsOf (submodule ({ name, config, ... }: { options = { cmd = mkOption { type = types.lines; |