aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/selfhost
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-14 13:57:10 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-14 14:12:12 -0500
commit8244bb48b9dbd3358aa6d47209dfbfd3c19b906f (patch)
tree3b6755a39f8f044b21036ccf63cf41eb401e858c /modules/services/nixos/selfhost
parentd71356eef83e4df59416cd10109cb5688e657c16 (diff)
fantasy config if ganymede did run nixos (I wish)
Diffstat (limited to 'modules/services/nixos/selfhost')
-rw-r--r--modules/services/nixos/selfhost/default.nix5
-rw-r--r--modules/services/nixos/selfhost/navidrome.nix19
2 files changed, 24 insertions, 0 deletions
diff --git a/modules/services/nixos/selfhost/default.nix b/modules/services/nixos/selfhost/default.nix
new file mode 100644
index 0000000..03dbe4f
--- /dev/null
+++ b/modules/services/nixos/selfhost/default.nix
@@ -0,0 +1,5 @@
+{
+ imports = [
+ ./navidrome.nix
+ ];
+}
diff --git a/modules/services/nixos/selfhost/navidrome.nix b/modules/services/nixos/selfhost/navidrome.nix
new file mode 100644
index 0000000..5250b85
--- /dev/null
+++ b/modules/services/nixos/selfhost/navidrome.nix
@@ -0,0 +1,19 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.services.selfhost.navidrome;
+in
+ lib.mkIf cfg.enable {
+ services.navidrome = {
+ enable = true;
+ inherit (cfg) user;
+ settings = {
+ Port = 4533;
+ Address = "0.0.0.0";
+ EnableInsightsCollector = false;
+ MusicFolder = "/home/${cfg.user}/Music";
+ };
+ };
+ }