This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Skarlett
authored and
Skarlett
committed
Jul 23, 2023
1 parent
dde2054
commit dfb54c1
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ config, lib, pkgs, ...}: | ||
with lib; | ||
let | ||
cfg = config.services.airsonic-advanced; | ||
in | ||
{ | ||
options.services.airsonic-advanced.enable = mkEnableOption "Enable airsonic-advanced"; | ||
|
||
config = mkIf cfg.enable { | ||
services.airsonic = { | ||
enable = true; | ||
jre = pkgs.openjdk11; | ||
maxMemory = 4096; | ||
war = "${pkgs.self.airsonic-advanced-war.outPath}/webapps/airsonic.war"; | ||
jveOptions = [ | ||
"-server" | ||
]; | ||
}; | ||
|
||
networking.firewall.allowedTCPPorts = [ config.services.airsonic.port ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ airsonic, fetchurl }: | ||
airsonic.overrideAttrs (final: prev: rec { | ||
pname = "airsonic-advanced"; | ||
version = "10.6.0"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/airsonic-advanced/airsonic-advanced/releases/download/v${version}/airsonic.war"; | ||
hash = "sha256-Uo9BfllJkWGtf9i4bTkePH7/cOCCVGXjFfhtNBdmTGk="; | ||
}; | ||
|
||
meta.homepage = "https://github.com/airsonic-advanced"; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters