diff options
author | Silvan Mosberger <contact@infinisil.com> | 2019-09-06 17:42:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-06 17:42:50 +0200 |
commit | cd9f199c2b408e0f1078dfca84df6f4ab77ff627 (patch) | |
tree | 0b5d34c227caa8cac955c5099a3f8939b8ca8ba2 /nixos/modules | |
parent | 75388ff04f9ea724b0560fc710b07046a13f1a2d (diff) | |
parent | 5a03f90525360547e1cf53d82ea5795f390779de (diff) | |
download | nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar.gz nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar.bz2 nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar.lz nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar.xz nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.tar.zst nixpkgs-cd9f199c2b408e0f1078dfca84df6f4ab77ff627.zip |
Merge pull request #68210 from ivan/nixos-railcar-string
nixos/railcar: remove use of the deprecated string type
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/virtualisation/railcar.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/modules/virtualisation/railcar.nix b/nixos/modules/virtualisation/railcar.nix index 8b643e3b6d6..12da1c75fc3 100644 --- a/nixos/modules/virtualisation/railcar.nix +++ b/nixos/modules/virtualisation/railcar.nix @@ -25,7 +25,7 @@ let mount = with types; (submodule { options = { type = mkOption { - type = string; + type = str; default = "none"; description = '' The type of the filesystem to be mounted. @@ -37,11 +37,11 @@ let ''; }; source = mkOption { - type = string; + type = str; description = "Source for the in-container mount"; }; options = mkOption { - type = loaOf (string); + type = loaOf (str); default = [ "bind" ]; description = '' Mount options of the filesystem to be used. @@ -64,7 +64,7 @@ in type = with types; loaOf (submodule ({ name, config, ... }: { options = { cmd = mkOption { - type = types.string; + type = types.lines; description = "Command or script to run inside the container"; }; @@ -83,19 +83,19 @@ in }; runType = mkOption { - type = types.string; + type = types.str; default = "oneshot"; description = "The systemd service run type"; }; os = mkOption { - type = types.string; + type = types.str; default = "linux"; description = "OS type of the container"; }; arch = mkOption { - type = types.string; + type = types.str; default = "x86_64"; description = "Computer architecture type of the container"; }; |