AriaNg: Include as flake

This commit is contained in:
Simon Bruder 2021-05-02 17:10:36 +02:00
parent 51f814c70d
commit 440fc97f7f
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 32 additions and 6 deletions

View file

@ -1,5 +1,28 @@
{
"nodes": {
"AriaNg": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1619967350,
"narHash": "sha256-+eIfC+65Tqs/B6EmtHVMeNiFoId/jClVmqnEWGZMzbE=",
"ref": "master",
"rev": "2dc260f73f9b612b7055cbd1c9ac0a49bdbee56a",
"revCount": 603,
"type": "git",
"url": "https://git.sbruder.de/simon/AriaNg"
},
"original": {
"type": "git",
"url": "https://git.sbruder.de/simon/AriaNg"
}
},
"aria2_exporter": {
"inputs": {
"flake-utils": [
@ -196,6 +219,7 @@
},
"root": {
"inputs": {
"AriaNg": "AriaNg",
"aria2_exporter": "aria2_exporter",
"bang-evaluator": "bang-evaluator",
"flake-utils": "flake-utils",

View file

@ -33,10 +33,15 @@
aria2_exporter.url = "github:sbruder/aria2_exporter";
aria2_exporter.inputs.flake-utils.follows = "flake-utils";
aria2_exporter.inputs.nixpkgs.follows = "nixpkgs";
AriaNg.url = "git+https://git.sbruder.de/simon/AriaNg";
AriaNg.inputs.flake-utils.follows = "flake-utils";
AriaNg.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self
, AriaNg
, aria2_exporter
, bang-evaluator
, flake-utils
@ -187,6 +192,8 @@
overlays = config.nixpkgs.overlays;
};
})
AriaNg.overlay
];
})

View file

@ -172,12 +172,7 @@ in
locations = {
"/" = {
root = toString (import
(pkgs.fetchzip {
url = "https://git.sbruder.de/simon/AriaNg/archive/51c53f298091a6a6b6077febc2bc9370acb47271.tar.gz";
sha256 = "0f8j86l3fw71q1m00radlv2bg33l9jad0razyalvspzam3p3bsk1";
})
{ inherit pkgs; });
root = pkgs.AriaNg;
};
"/jsonrpc" = {
proxyPass = "http://unix:${homeDir}/rpc.sock";