homepage: jellyfin init
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
mkServerOptions = name: subdomain: port: {
|
||||
mkOptions = name: subdomain: port: {
|
||||
enable = lib.mkEnableOption "enable";
|
||||
enableCron = lib.mkEnableOption "enable cronjob";
|
||||
port = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = port;
|
||||
};
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = name;
|
||||
};
|
||||
host = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "${subdomain}.${config.my.domain}";
|
||||
@@ -20,4 +24,4 @@ let
|
||||
default = "http://${config.my.localhost}:${toString port}";
|
||||
};
|
||||
};
|
||||
in { inherit mkServerOptions; }
|
||||
in { inherit mkOptions; }
|
||||
|
||||
Reference in New Issue
Block a user