VEGAS: add nar-serve

This commit is contained in:
Max Headroom 2021-10-16 20:24:25 +02:00
parent 7635bf6ff4
commit 32e41ddcd9
4 changed files with 54 additions and 0 deletions

View file

@ -58,6 +58,21 @@
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1623875721,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -116,6 +131,27 @@
"type": "github"
}
},
"nar-serve": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1626443268,
"narHash": "sha256-LAsxgaWKTxOVZVpNrUG9ZrHMnzNMKKxKciVitxdgylE=",
"owner": "numtide",
"repo": "nar-serve",
"rev": "84a77d8ab3ddec9d8090d2f0bc6718484e2d94ea",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nar-serve",
"type": "github"
}
},
"nix-super": {
"inputs": {
"nix": [
@ -179,6 +215,7 @@
"deploy-rs": "deploy-rs",
"home-manager": "home-manager",
"naersk": "naersk",
"nar-serve": "nar-serve",
"nix-super": "nix-super",
"nix-super-unstable-repin": "nix-super-unstable-repin",
"nixpkgs": "nixpkgs"

View file

@ -23,6 +23,9 @@
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
nar-serve.url = "github:numtide/nar-serve";
nar-serve.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let

View file

@ -0,0 +1,13 @@
{ inputs, pkgs, tools, ... }:
{
systemd.services.nar-serve = {
enable = true;
serviceConfig = {
DynamicUser = true;
User = "nar-serve";
};
script = "${inputs.nar-serve.defaultPackage."${pkgs.system}"}/bin/nar-serve";
environment.NAR_CACHE_URL = "https://cache.${tools.meta.domain}";
};
}

View file

@ -30,6 +30,7 @@
./services/mail
./services/matrix
./services/nix/binary-cache.nix
./services/nix/nar-serve.nix
./services/object-storage
./services/warehouse
./services/websites