diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-23 11:16:40 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-23 11:16:40 -0600 |
| commit | 66232d31d1f115a796dc76a9f6df88a6b13c424e (patch) | |
| tree | a2cb039bd1b84583f9a52a7e4ceff01951b83dd6 /modules/services | |
| parent | 93ddc9cb616d1fcabd8f1b7cab338d1da8701fd4 (diff) | |
bullets
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/nixos/copyparty.nix | 1 | ||||
| -rw-r--r-- | modules/services/nixos/default.nix | 5 | ||||
| -rw-r--r-- | modules/services/nixos/polaris.nix | 26 | ||||
| -rw-r--r-- | modules/services/options.nix | 19 |
4 files changed, 42 insertions, 9 deletions
diff --git a/modules/services/nixos/copyparty.nix b/modules/services/nixos/copyparty.nix index cb83cf0..23363a7 100644 --- a/modules/services/nixos/copyparty.nix +++ b/modules/services/nixos/copyparty.nix @@ -26,6 +26,7 @@ in { rproxy = "1"; tls = false; + name = "files@ganymede"; usernames = true; no-robots = true; chmod-d = "775"; diff --git a/modules/services/nixos/default.nix b/modules/services/nixos/default.nix index 2883629..44d0d7f 100644 --- a/modules/services/nixos/default.nix +++ b/modules/services/nixos/default.nix @@ -1,14 +1,15 @@ { imports = [ - ./mopidy.nix + # ./mopidy.nix ./forgejo.nix ./cgit ./openssh.nix # ./jellyfin.nix + ./polaris.nix ./caddy.nix ./goaccess.nix ./copyparty.nix - ./ngircd.nix + # ./ngircd.nix ]; } diff --git a/modules/services/nixos/polaris.nix b/modules/services/nixos/polaris.nix new file mode 100644 index 0000000..89f5ef3 --- /dev/null +++ b/modules/services/nixos/polaris.nix @@ -0,0 +1,26 @@ +{ + lib, + config, + ... +}: let + cfg = config.collinux.services.polaris; +in { + imports = [ + (import ./mkCaddyCfg.nix cfg) + ]; + + config = lib.mkIf cfg.enable { + services.polaris = { + enable = true; + port = cfg.port; + settings = { + mount_dirs = [ + { + name = "Ganymede Library"; + source = "/media/library/music"; + } + ]; + }; + }; + }; +} diff --git a/modules/services/options.nix b/modules/services/options.nix index aacdee9..0e250ed 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -74,13 +74,18 @@ in { cgit.enable = mkEnableOption "cgit web git frontend"; - mopidy = { - enable = mkEnableOption "Mopidy MPD server"; - port = mkOption { - description = "port to run the service on"; - type = lib.types.port; - default = 6600; - }; + # mopidy = { + # enable = mkEnableOption "Mopidy MPD server"; + # port = mkOption { + # description = "port to run the service on"; + # type = lib.types.port; + # default = 6600; + # }; + # }; + + polaris = selfhostOptions { + service_name = "polaris"; + default_port = 8079; }; copyparty = |
