Compare commits
No commits in common. "5659cceab5fe1c81fdbe3ee9ee0ef0fd9df23abd" and "319d292fa0f5b3699f07780092b87ebe115e432f" have entirely different histories.
5659cceab5
...
319d292fa0
@ -38,9 +38,7 @@
|
|||||||
trusted-users = ["root" "phundrak"];
|
trusted-users = ["root" "phundrak"];
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
calibre.enable = true;
|
|
||||||
endlessh.enable = true;
|
endlessh.enable = true;
|
||||||
jellyfin.enable = true;
|
|
||||||
plex = {
|
plex = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/tank/web/stacks/plex/plex-config";
|
dataDir = "/tank/web/stacks/plex/plex-config";
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
cfg = config.system.services.calibre;
|
|
||||||
in {
|
|
||||||
options.system.services.calibre = {
|
|
||||||
enable = mkEnableOption "Enable Calibre Web";
|
|
||||||
user = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
default = "phundrak";
|
|
||||||
};
|
|
||||||
group = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
default = "users";
|
|
||||||
};
|
|
||||||
dataDir = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
example = "/tank/calibre/conf";
|
|
||||||
default = "/tank/calibre/conf";
|
|
||||||
};
|
|
||||||
library = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
example = "/tank/calibre/library";
|
|
||||||
default = "/tank/calibre/library";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config.services.calibre-web = mkIf cfg.enable {
|
|
||||||
inherit (cfg) enable user group dataDir;
|
|
||||||
options = {
|
|
||||||
calibreLibrary = cfg.library;
|
|
||||||
enableBookConversion = true;
|
|
||||||
enableBookUploading = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./calibre.nix
|
|
||||||
./endlessh.nix
|
./endlessh.nix
|
||||||
./fwupd.nix
|
./fwupd.nix
|
||||||
./jellyfin.nix
|
|
||||||
./plex.nix
|
./plex.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
cfg = config.system.services.jellyfin;
|
|
||||||
in {
|
|
||||||
options.system.services.jellyfin = {
|
|
||||||
enable = mkEnableOption "Enable Jellyfin";
|
|
||||||
dataDir = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
default = "/tank/jellyfin/data";
|
|
||||||
example = "/tank/jellyfin/data";
|
|
||||||
};
|
|
||||||
user = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
default = "phundrak";
|
|
||||||
};
|
|
||||||
group = mkOption {
|
|
||||||
type = types.string;
|
|
||||||
default = "users";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config.services.jellyfin = mkIf cfg.enable {
|
|
||||||
inherit (cfg) enable group user dataDir;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user