nixos/railcar: small style changes
This commit is contained in:
parent
8f7da8ce0b
commit
589c156869
@ -22,36 +22,37 @@ let
|
|||||||
Type = containerConfig.runType;
|
Type = containerConfig.runType;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mount = {
|
mount = with types; (submodule {
|
||||||
options = {
|
options = {
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
type = types.string;
|
type = string;
|
||||||
default = "none";
|
default = "none";
|
||||||
description = ''
|
description = ''
|
||||||
The type of the filesystem to be mounted.
|
The type of the filesystem to be mounted.
|
||||||
Linux: filesystem types supported by the kernel as listed in
|
Linux: filesystem types supported by the kernel as listed in
|
||||||
`/proc/filesystems` (e.g., "minix", "ext2", "ext3", "jfs", "xfs",
|
`/proc/filesystems` (e.g., "minix", "ext2", "ext3", "jfs", "xfs",
|
||||||
"reiserfs", "msdos", "proc", "nfs", "iso9660"). For bind mounts
|
"reiserfs", "msdos", "proc", "nfs", "iso9660"). For bind mounts
|
||||||
(when options include either bind or rbind), the type is a dummy,
|
(when options include either bind or rbind), the type is a dummy,
|
||||||
often "none" (not listed in /proc/filesystems).
|
often "none" (not listed in /proc/filesystems).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
source = mkOption {
|
source = mkOption {
|
||||||
type = types.string;
|
type = string;
|
||||||
description = "Source for the in-container mount";
|
description = "Source for the in-container mount";
|
||||||
};
|
};
|
||||||
options = mkOption {
|
options = mkOption {
|
||||||
type = with types; loaOf (string);
|
type = loaOf (string);
|
||||||
default = [ "bind" ];
|
default = [ "bind" ];
|
||||||
description = ''
|
description = ''
|
||||||
Mount options of the filesystem to be used.
|
Mount options of the filesystem to be used.
|
||||||
|
|
||||||
Support optoions are listed in the mount(8) man page. Note that both
|
Support optoions are listed in the mount(8) man page. Note that
|
||||||
filesystem-independent and filesystem-specific options are listed.
|
both filesystem-independent and filesystem-specific options
|
||||||
'';
|
are listed.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.railcar = {
|
options.services.railcar = {
|
||||||
@ -68,7 +69,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
mounts = mkOption {
|
mounts = mkOption {
|
||||||
type = with types; attrsOf (submodule (mount));
|
type = with types; attrsOf mount;
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
A set of mounts inside the container.
|
A set of mounts inside the container.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user