manatee: nixfmt

This commit is contained in:
Alexander Heldt
2026-03-07 12:08:01 +00:00
parent 6ea5db6d37
commit f446706a9c
9 changed files with 65 additions and 47 deletions

View File

@@ -10,11 +10,13 @@ in
};
config = lib.mkIf enabled {
mod.homepage.services = [{
name = "Audiobookshelf";
port = 8000;
description = "Audiobooks & podcasts";
}];
mod.homepage.services = [
{
name = "Audiobookshelf";
port = 8000;
description = "Audiobooks & podcasts";
}
];
users.users.audiobookshelf = {
isSystemUser = true;

View File

@@ -10,11 +10,13 @@ in
};
config = lib.mkIf enabled {
mod.homepage.services = [{
name = "Calibre-Web";
port = 8083;
description = "E-book library";
}];
mod.homepage.services = [
{
name = "Calibre-Web";
port = 8083;
description = "E-book library";
}
];
services = {
calibre-web = {

View File

@@ -62,11 +62,13 @@ let
'';
in
{
mod.homepage.services = [{
name = "Home Assistant";
port = 8123;
description = "Home automation";
}];
mod.homepage.services = [
{
name = "Home Assistant";
port = 8123;
description = "Home automation";
}
];
hardware.bluetooth.enable = true;

View File

@@ -77,13 +77,15 @@ in
mod.homepage = {
enable = lib.mkEnableOption "Enable homepage module";
services = lib.mkOption {
type = lib.types.listOf (lib.types.submodule {
options = {
name = lib.mkOption { type = lib.types.str; };
port = lib.mkOption { type = lib.types.port; };
description = lib.mkOption { type = lib.types.str; };
};
});
type = lib.types.listOf (
lib.types.submodule {
options = {
name = lib.mkOption { type = lib.types.str; };
port = lib.mkOption { type = lib.types.port; };
description = lib.mkOption { type = lib.types.str; };
};
}
);
default = [ ];
description = "Services to display on the homepage";
};

View File

@@ -10,11 +10,13 @@ in
};
config = lib.mkIf enabled {
mod.homepage.services = [{
name = "Immich";
port = 2283;
description = "Photo library";
}];
mod.homepage.services = [
{
name = "Immich";
port = 2283;
description = "Photo library";
}
];
users.users.immich = {
isSystemUser = true;

View File

@@ -47,11 +47,13 @@ in
};
};
mod.homepage.services = [{
name = "Jellyfin";
port = 8096;
description = "Media streaming";
}];
mod.homepage.services = [
{
name = "Jellyfin";
port = 8096;
description = "Media streaming";
}
];
networking = {
firewall.allowedTCPPorts = [ 8096 ];

View File

@@ -15,11 +15,13 @@ in
};
config = {
mod.homepage.services = lib.mkIf navidromeEnabled [{
name = "Navidrome";
port = 4533;
description = "Music streaming";
}];
mod.homepage.services = lib.mkIf navidromeEnabled [
{
name = "Navidrome";
port = 4533;
description = "Music streaming";
}
];
services = lib.mkIf navidromeEnabled {
navidrome = {

View File

@@ -10,11 +10,13 @@ in
};
config = lib.mkIf enabled {
mod.homepage.services = [{
name = "Syncthing";
port = 8384;
description = "File sync";
}];
mod.homepage.services = [
{
name = "Syncthing";
port = 8384;
description = "File sync";
}
];
services.syncthing = {
enable = true;

View File

@@ -15,11 +15,13 @@ in
};
config = lib.mkIf enabled {
mod.homepage.services = [{
name = "Transmission";
port = 9091;
description = "Torrent client";
}];
mod.homepage.services = [
{
name = "Transmission";
port = 9091;
description = "Torrent client";
}
];
services = {
transmission = {