aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-09-03 11:02:52 +0200
committerAlyssa Ross <hi@alyssa.is>2019-09-04 22:46:42 +0000
commit589c156869c237c3f8f537277f026bff9369cb82 (patch)
tree21c2d88e967d2354d0e9af9820b9480299dd8466 /nixos/modules/virtualisation
parent8f7da8ce0b310e7a64e4ab01a62122b70075083f (diff)
nixos/railcar: small style changes
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/railcar.nix35
1 files changed, 18 insertions, 17 deletions
diff --git a/nixos/modules/virtualisation/railcar.nix b/nixos/modules/virtualisation/railcar.nix
index 1508c171cc7..8b643e3b6d6 100644
--- a/nixos/modules/virtualisation/railcar.nix
+++ b/nixos/modules/virtualisation/railcar.nix
@@ -22,36 +22,37 @@ let
Type = containerConfig.runType;
};
};
- mount = {
+ mount = with types; (submodule {
options = {
type = mkOption {
- type = types.string;
+ type = string;
default = "none";
description = ''
- The type of the filesystem to be mounted.
- Linux: filesystem types supported by the kernel as listed in
- `/proc/filesystems` (e.g., "minix", "ext2", "ext3", "jfs", "xfs",
- "reiserfs", "msdos", "proc", "nfs", "iso9660"). For bind mounts
- (when options include either bind or rbind), the type is a dummy,
- often "none" (not listed in /proc/filesystems).
- '';
+ The type of the filesystem to be mounted.
+ Linux: filesystem types supported by the kernel as listed in
+ `/proc/filesystems` (e.g., "minix", "ext2", "ext3", "jfs", "xfs",
+ "reiserfs", "msdos", "proc", "nfs", "iso9660"). For bind mounts
+ (when options include either bind or rbind), the type is a dummy,
+ often "none" (not listed in /proc/filesystems).
+ '';
};
source = mkOption {
- type = types.string;
+ type = string;
description = "Source for the in-container mount";
};
options = mkOption {
- type = with types; loaOf (string);
+ type = loaOf (string);
default = [ "bind" ];
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
- filesystem-independent and filesystem-specific options are listed.
- '';
+ Support optoions are listed in the mount(8) man page. Note that
+ both filesystem-independent and filesystem-specific options
+ are listed.
+ '';
};
};
- };
+ });
in
{
options.services.railcar = {
@@ -68,7 +69,7 @@ in
};
mounts = mkOption {
- type = with types; attrsOf (submodule (mount));
+ type = with types; attrsOf mount;
default = {};
description = ''
A set of mounts inside the container.