nixos: Initial jackflix container
This commit is contained in:
		@@ -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, ... }: {
 | 
			
		||||
 
 | 
			
		||||
@@ -259,6 +259,14 @@ in
 | 
			
		||||
          }
 | 
			
		||||
        ];
 | 
			
		||||
      })
 | 
			
		||||
      (mkIf config.services.jackett.enable {
 | 
			
		||||
        my.tmproot.persistence.config.directories = [
 | 
			
		||||
          {
 | 
			
		||||
            directory = "/var/lib/jackett";
 | 
			
		||||
            inherit (config.services.jackett) user group;
 | 
			
		||||
          }
 | 
			
		||||
        ];
 | 
			
		||||
      })
 | 
			
		||||
      (mkIf config.my.build.isDevVM {
 | 
			
		||||
        fileSystems = mkVMOverride {
 | 
			
		||||
          # Hijack the "root" device for persistence in the VM
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user