nixos: Initial jackflix container

This commit is contained in:
2022-06-11 19:13:20 +01:00
parent d2deabc6b2
commit 7dc6b5df8c
14 changed files with 246 additions and 44 deletions

View File

@@ -60,12 +60,13 @@ let
bindMountOpts = with lib.types; { name, ... }: {
options = {
mountPoint = mkOption {
default = name;
example = "/mnt/usb";
type = str;
description = "Mount point on the container file system.";
};
hostPath = mkOption {
default = null;
default = name;
example = "/home/alice";
type = nullOr str;
description = "Location of the host path to be mounted.";
@@ -76,10 +77,6 @@ let
description = "Determine whether the mounted path will be accessed in read-only mode.";
};
};
config = {
mountPoint = mkDefault name;
};
};
containerOpts = with lib.types; { name, ... }: {