manatee: nixfmt
This commit is contained in:
@@ -10,11 +10,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Audiobookshelf";
|
name = "Audiobookshelf";
|
||||||
port = 8000;
|
port = 8000;
|
||||||
description = "Audiobooks & podcasts";
|
description = "Audiobooks & podcasts";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
users.users.audiobookshelf = {
|
users.users.audiobookshelf = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
|||||||
@@ -10,11 +10,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Calibre-Web";
|
name = "Calibre-Web";
|
||||||
port = 8083;
|
port = 8083;
|
||||||
description = "E-book library";
|
description = "E-book library";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
calibre-web = {
|
calibre-web = {
|
||||||
|
|||||||
@@ -62,11 +62,13 @@ let
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Home Assistant";
|
name = "Home Assistant";
|
||||||
port = 8123;
|
port = 8123;
|
||||||
description = "Home automation";
|
description = "Home automation";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -77,13 +77,15 @@ in
|
|||||||
mod.homepage = {
|
mod.homepage = {
|
||||||
enable = lib.mkEnableOption "Enable homepage module";
|
enable = lib.mkEnableOption "Enable homepage module";
|
||||||
services = lib.mkOption {
|
services = lib.mkOption {
|
||||||
type = lib.types.listOf (lib.types.submodule {
|
type = lib.types.listOf (
|
||||||
|
lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
name = lib.mkOption { type = lib.types.str; };
|
name = lib.mkOption { type = lib.types.str; };
|
||||||
port = lib.mkOption { type = lib.types.port; };
|
port = lib.mkOption { type = lib.types.port; };
|
||||||
description = lib.mkOption { type = lib.types.str; };
|
description = lib.mkOption { type = lib.types.str; };
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "Services to display on the homepage";
|
description = "Services to display on the homepage";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,11 +10,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Immich";
|
name = "Immich";
|
||||||
port = 2283;
|
port = 2283;
|
||||||
description = "Photo library";
|
description = "Photo library";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
users.users.immich = {
|
users.users.immich = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
|||||||
@@ -47,11 +47,13 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Jellyfin";
|
name = "Jellyfin";
|
||||||
port = 8096;
|
port = 8096;
|
||||||
description = "Media streaming";
|
description = "Media streaming";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.allowedTCPPorts = [ 8096 ];
|
firewall.allowedTCPPorts = [ 8096 ];
|
||||||
|
|||||||
@@ -15,11 +15,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
mod.homepage.services = lib.mkIf navidromeEnabled [{
|
mod.homepage.services = lib.mkIf navidromeEnabled [
|
||||||
|
{
|
||||||
name = "Navidrome";
|
name = "Navidrome";
|
||||||
port = 4533;
|
port = 4533;
|
||||||
description = "Music streaming";
|
description = "Music streaming";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services = lib.mkIf navidromeEnabled {
|
services = lib.mkIf navidromeEnabled {
|
||||||
navidrome = {
|
navidrome = {
|
||||||
|
|||||||
@@ -10,11 +10,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Syncthing";
|
name = "Syncthing";
|
||||||
port = 8384;
|
port = 8384;
|
||||||
description = "File sync";
|
description = "File sync";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -15,11 +15,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enabled {
|
config = lib.mkIf enabled {
|
||||||
mod.homepage.services = [{
|
mod.homepage.services = [
|
||||||
|
{
|
||||||
name = "Transmission";
|
name = "Transmission";
|
||||||
port = 9091;
|
port = 9091;
|
||||||
description = "Torrent client";
|
description = "Torrent client";
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
transmission = {
|
transmission = {
|
||||||
|
|||||||
Reference in New Issue
Block a user