summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-04-05 17:00:22 +0200
committerMartin Fischer <martin@push-f.com>2025-04-05 17:40:04 +0200
commit51b82013660827ab96f2fabd6a623c988676f642 (patch)
tree27c6482b8349203b42cd9c6fd7c8592c69607737
parent7a1cc880551aab1fa7b750380ab644c9e079e37e (diff)
feat(tente): add rust-features
-rw-r--r--nixos/hosts/tente/default.nix22
-rw-r--r--nixos/npins/sources.json11
2 files changed, 33 insertions, 0 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index 6f0458e..e87b74b 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -25,6 +25,7 @@ in
./monitoring.nix
"${sources.my-osm-proposals}/service.nix"
"${sources.my-geopos-link}/service.nix"
+ "${sources.my-rust-features}/service.nix"
"${sources.my-spec-pub}/service.nix"
];
@@ -35,6 +36,12 @@ in
matrix.serverName = baseDomain;
matrix.apiDomain = "matrix.${baseDomain}";
+ users.users.www-generator = {
+ isSystemUser = true;
+ group = "www-generator";
+ };
+ users.groups.www-generator = {};
+
services.osm_proposals =
let
domain = "osm-proposals.${baseDomain}";
@@ -63,6 +70,21 @@ in
};
};
+ services.rust-features =
+ let
+ domain = "rust-features.${baseDomain}";
+ in
+ {
+ enable = true;
+ user = "www-generator";
+ virtualHost = domain;
+ nginx = {
+ enableACME = true;
+ forceSSL = true;
+ extraConfig = helpers.mkNginxConfig domain;
+ };
+ };
+
services.spec-pub =
let
domain = "spec.pub";
diff --git a/nixos/npins/sources.json b/nixos/npins/sources.json
index 75e5790..04223c8 100644
--- a/nixos/npins/sources.json
+++ b/nixos/npins/sources.json
@@ -37,6 +37,17 @@
"url": null,
"hash": "14j48alysvx4n06my3kspsbplx23sv07nvswrya1x3swmwn4mnnc"
},
+ "my-rust-features": {
+ "type": "Git",
+ "repository": {
+ "type": "Git",
+ "url": "https://git.push-f.com/rust-features"
+ },
+ "branch": "master",
+ "revision": "d8b675d3670a70df15ec46dfd9a1bb9f801aae41",
+ "url": null,
+ "hash": "1z1mpyx7b9swy7n5434jd3xg3wpkfmar81wxa4r26cx7vz6rq6jc"
+ },
"my-spec-pub": {
"type": "Git",
"repository": {