aboutsummaryrefslogtreecommitdiff
path: root/modules/containers
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
committertdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
commit88017f5a874478dd82f306a5df88c38a8d06fcb6 (patch)
tree8806c58c4f21bb6a56d8530df8a93b256d44b4f3 /modules/containers
parent01d012473d4311d4f4e5a0831d912bc4b8c61639 (diff)
fix: format flake with `nixfmt-rfc-style`
Diffstat (limited to 'modules/containers')
-rw-r--r--modules/containers/freshrss/default.nix7
-rw-r--r--modules/containers/jellyfin/default.nix7
-rw-r--r--modules/containers/lubelogger/default.nix7
-rw-r--r--modules/containers/pinchflat/default.nix7
-rw-r--r--modules/containers/vaultwarden/default.nix9
5 files changed, 16 insertions, 21 deletions
diff --git a/modules/containers/freshrss/default.nix b/modules/containers/freshrss/default.nix
index 5f352a7..7cbe944 100644
--- a/modules/containers/freshrss/default.nix
+++ b/modules/containers/freshrss/default.nix
@@ -1,16 +1,15 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/freshrss";
port = "8888";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.freshrss = {
image = "freshrss/freshrss:latest";
autoStart = true;
- ports = singleton "${port}:80";
+ ports = [ "${port}:80" ];
volumes = [
"${directory}/data:/var/www/FreshRSS/data"
"${directory}/extensions:/var/www/FreshRSS/extensions"
diff --git a/modules/containers/jellyfin/default.nix b/modules/containers/jellyfin/default.nix
index d4923ae..a7b9557 100644
--- a/modules/containers/jellyfin/default.nix
+++ b/modules/containers/jellyfin/default.nix
@@ -1,16 +1,15 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/jellyfin";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.jellyfin = {
image = "jellyfin/jellyfin:latest";
autoStart = true;
user = "994:994";
- ports = singleton "8096:8096/tcp";
+ ports = [ "8096:8096/tcp" ];
volumes = [
"${directory}/config:/config"
"${directory}/cache:/cache"
diff --git a/modules/containers/lubelogger/default.nix b/modules/containers/lubelogger/default.nix
index 37155dc..6ff2b0d 100644
--- a/modules/containers/lubelogger/default.nix
+++ b/modules/containers/lubelogger/default.nix
@@ -1,16 +1,15 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/lubelogger";
port = "8889";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.lubelogger = {
image = "ghcr.io/hargata/lubelogger:latest";
autoStart = true;
- ports = singleton "${port}:8080";
+ ports = [ "${port}:8080" ];
volumes = [
"${directory}/config:/App/config"
"${directory}/data:/App/data"
diff --git a/modules/containers/pinchflat/default.nix b/modules/containers/pinchflat/default.nix
index 996476d..6f9c825 100644
--- a/modules/containers/pinchflat/default.nix
+++ b/modules/containers/pinchflat/default.nix
@@ -1,15 +1,14 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/pinchflat";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.pinchflat = {
image = "keglin/pinchflat:latest";
autoStart = true;
- ports = singleton "8945:8945";
+ ports = [ "8945:8945" ];
volumes = [
"${directory}:/config"
"/tank/media/yt:/downloads"
diff --git a/modules/containers/vaultwarden/default.nix b/modules/containers/vaultwarden/default.nix
index 9211c63..7fb4ae0 100644
--- a/modules/containers/vaultwarden/default.nix
+++ b/modules/containers/vaultwarden/default.nix
@@ -1,18 +1,17 @@
-{ lib, ... }:
+{ ... }:
let
- inherit (lib.lists) singleton;
directory = "/opt/vaultwarden";
domain = "steel-mountain.brownbread.net";
port = "11001";
in
{
- systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);
+ systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") [ directory ];
virtualisation.oci-containers.containers.vaultwarden = {
image = "vaultwarden/server:latest";
autoStart = true;
- ports = singleton "${port}:80";
- volumes = singleton "${directory}/data:/data";
+ ports = [ "${port}:80" ];
+ volumes = [ "${directory}/data:/data" ];
environment = {
DOMAIN = domain;
WEBSOCKET_ENABLED = "true";