nixos/railcar: remove use of the deprecated string type
This fixes the warning being emitted by nixos-rebuild switch: building Nix... building the system configuration... trace: warning: types.string is deprecated because it quietly concatenates strings It started emitting a warning in #66346.
This commit is contained in:
parent
35f0ffb704
commit
5a03f90525
@ -25,7 +25,7 @@ let
|
|||||||
mount = with types; (submodule {
|
mount = with types; (submodule {
|
||||||
options = {
|
options = {
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
type = string;
|
type = str;
|
||||||
default = "none";
|
default = "none";
|
||||||
description = ''
|
description = ''
|
||||||
The type of the filesystem to be mounted.
|
The type of the filesystem to be mounted.
|
||||||
@ -37,11 +37,11 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
source = mkOption {
|
source = mkOption {
|
||||||
type = string;
|
type = str;
|
||||||
description = "Source for the in-container mount";
|
description = "Source for the in-container mount";
|
||||||
};
|
};
|
||||||
options = mkOption {
|
options = mkOption {
|
||||||
type = loaOf (string);
|
type = loaOf (str);
|
||||||
default = [ "bind" ];
|
default = [ "bind" ];
|
||||||
description = ''
|
description = ''
|
||||||
Mount options of the filesystem to be used.
|
Mount options of the filesystem to be used.
|
||||||
@ -64,7 +64,7 @@ in
|
|||||||
type = with types; loaOf (submodule ({ name, config, ... }: {
|
type = with types; loaOf (submodule ({ name, config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
cmd = mkOption {
|
cmd = mkOption {
|
||||||
type = types.string;
|
type = types.lines;
|
||||||
description = "Command or script to run inside the container";
|
description = "Command or script to run inside the container";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -83,19 +83,19 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
runType = mkOption {
|
runType = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "oneshot";
|
default = "oneshot";
|
||||||
description = "The systemd service run type";
|
description = "The systemd service run type";
|
||||||
};
|
};
|
||||||
|
|
||||||
os = mkOption {
|
os = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "linux";
|
default = "linux";
|
||||||
description = "OS type of the container";
|
description = "OS type of the container";
|
||||||
};
|
};
|
||||||
|
|
||||||
arch = mkOption {
|
arch = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "x86_64";
|
default = "x86_64";
|
||||||
description = "Computer architecture type of the container";
|
description = "Computer architecture type of the container";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user