Compare commits
2 commits
dev
...
feat/homep
| Author | SHA1 | Date | |
|---|---|---|---|
| 21ebf0374f | |||
| bdb4ad8160 |
4 changed files with 70 additions and 17 deletions
|
|
@ -343,7 +343,7 @@ in {
|
|||
port = 7878;
|
||||
in lib.mkIf cfg.radarr.enable {
|
||||
hostname = "radarr";
|
||||
image = "ghcr.io/hotio/radarr:release-5.28.0.10205";
|
||||
image = "ghcr.io/hotio/radarr:testing-5.28.0.10205";
|
||||
autoStart = true;
|
||||
ports = lib.mkIf cfg.radarr.exposePorts [
|
||||
"${toString port}:${toString port}/tcp"
|
||||
|
|
|
|||
59
modules/apps/homepage/default.nix
Normal file
59
modules/apps/homepage/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homelab.apps.homepage-dashboard;
|
||||
|
||||
networkName = "homepage";
|
||||
in {
|
||||
options.homelab.apps.homepage-dashboard = {
|
||||
enable = lib.mkEnableOption "homepage";
|
||||
port = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 8082;
|
||||
description = "Homepage port";
|
||||
};
|
||||
};
|
||||
|
||||
config = let
|
||||
inherit (config.homelab.apps.homepage-dashboard) port;
|
||||
in lib.mkIf cfg.enable {
|
||||
services.homepage-dashboard = {
|
||||
enable = true;
|
||||
package = pkgs.homepage-dashboard;
|
||||
|
||||
listenPort = port;
|
||||
|
||||
bookmarks = [
|
||||
{ Office = [
|
||||
{ "Zoho Mail" = [
|
||||
{ href = "https://mail.zoho.eu";
|
||||
icon = "zohomail";
|
||||
}
|
||||
];}
|
||||
];}
|
||||
{ Network = [
|
||||
{ Cloudflare = [
|
||||
{ href = "https://dash.cloudflare.com";
|
||||
icon = "cloudflare";
|
||||
}
|
||||
];}
|
||||
{ TransIP = [
|
||||
{ href = "https://www.transip.eu/cp/";
|
||||
icon = "https://www.transip.eu/cache-60c9b25f/img/transip-new/favicons/favicon.png";
|
||||
}
|
||||
];}
|
||||
{ "Telenet Modem" = [
|
||||
{ href = "https://www2.telenet.be/residential/nl/mijn-telenet/je-thuisnetwerk#/mainnavitem=hgw/mainnavitemid=item-1/subnavitem=modem_general";
|
||||
icon = "https://static.telenet.be/assets/favicon/favicon.ico";
|
||||
}
|
||||
];}
|
||||
{ Pulsetic = [
|
||||
{ href = "https://status.depeuter.dev";
|
||||
icon = "https://pulsetic.com/favicon-196x196.png";
|
||||
}
|
||||
];}
|
||||
];}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ let
|
|||
cfg = config.homelab.apps.jellyfin;
|
||||
|
||||
networkName = "jellyfin";
|
||||
inherit (config.homelab.fileSystems) media;
|
||||
|
||||
UID = 3008;
|
||||
GID = config.users.groups.media.gid;
|
||||
|
|
@ -12,6 +13,11 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
homelab = {
|
||||
fileSystems.media.video = {
|
||||
enable = true;
|
||||
permissions = [ "read" ];
|
||||
};
|
||||
|
||||
users = {
|
||||
apps.enable = true;
|
||||
media.enable = true;
|
||||
|
|
@ -32,18 +38,6 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
"/srv/video" = {
|
||||
device = "192.168.0.11:/mnt/SMALL/MEDIA/VIDEO";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"ro"
|
||||
"nfsvers=4.2"
|
||||
"async" "soft"
|
||||
"timeo=100" "retry=50" "actimeo=1800" "lookupcache=all"
|
||||
"nosuid" "tcp"
|
||||
];
|
||||
};
|
||||
|
||||
"/srv/homevideo" = {
|
||||
device = "192.168.0.11:/mnt/BIG/MEDIA/HOMEVIDEO/ARCHIVE";
|
||||
fsType = "nfs";
|
||||
|
|
@ -101,7 +95,7 @@ in {
|
|||
virtualisation.oci-containers.containers = {
|
||||
jellyfin = {
|
||||
hostname = "jellyfin";
|
||||
image = "jellyfin/jellyfin:10.10.0";
|
||||
image = "jellyfin/jellyfin:10.10.7";
|
||||
user = "${toString UID}:${toString GID}";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
|
|
@ -117,7 +111,7 @@ in {
|
|||
"cache:/cache"
|
||||
|
||||
"/srv/audio:/media/audio"
|
||||
"/srv/video:/media/video"
|
||||
"${media.video.hostPath}:/media/video"
|
||||
"/srv/homevideo:/media/homevideo"
|
||||
"/srv/photo:/media/photo"
|
||||
];
|
||||
|
|
@ -144,7 +138,7 @@ in {
|
|||
feishinPort = "9180";
|
||||
in {
|
||||
hostname = "feishin";
|
||||
image = "ghcr.io/jeffvli/feishin:0.7.1";
|
||||
image = "ghcr.io/jeffvli/feishin:0.19.0";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
"${feishinPort}:9180/tcp" # Web player (HTTP)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,6 @@ in {
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue