aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/polaris.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/nixos/polaris.nix')
-rw-r--r--modules/services/nixos/polaris.nix26
1 files changed, 26 insertions, 0 deletions
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";
+ }
+ ];
+ };
+ };
+ };
+}