summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-16 07:56:05 -0400
committerseth <[email protected]>2023-05-16 07:56:05 -0400
commit75d2be06035dd8ae3065bda0da36644c109b1aba (patch)
treec8147adb0e58aad406f9a6607dbdfc343dd6c859
parentf64ebd9402c03de16ec11b0986a42416a25bd2ac (diff)
ensure reproducibility with hci-agent & website
-rw-r--r--flake.lock55
-rw-r--r--flake.nix2
-rw-r--r--hosts/p-body/nginx.nix4
3 files changed, 44 insertions, 17 deletions
diff --git a/flake.lock b/flake.lock
index 4633f81..b9ffab8 100644
--- a/flake.lock
+++ b/flake.lock
@@ -221,19 +221,17 @@
},
"getchoo-website": {
"inputs": {
- "nixpkgs": [
- "nixpkgsUnstable"
- ],
+ "nixpkgs": "nixpkgs",
"pre-commit-hooks": [
"pre-commit-hooks"
]
},
"locked": {
- "lastModified": 1684228639,
- "narHash": "sha256-kOQIvjFSqAR7hGB5qNx7FDMpIcydFExlxQ6lEIsATI4=",
+ "lastModified": 1684237001,
+ "narHash": "sha256-9pOpquN8IBSI83s1Ahh7Vbi0hTL+TLQfsLsX81x4F3g=",
"owner": "getchoo",
"repo": "getchoo.github.io",
- "rev": "4b2f271406f4f32dee01d0ecb7d8528e9eae1c1d",
+ "rev": "119d2a208944f7b4d37cf1afd275dbd6fa7cb0b0",
"type": "github"
},
"original": {
@@ -309,9 +307,7 @@
],
"haskell-flake": "haskell-flake",
"nix-darwin": "nix-darwin",
- "nixpkgs": [
- "nixpkgsUnstable"
- ],
+ "nixpkgs": "nixpkgs_2",
"pre-commit-hooks-nix": [
"pre-commit-hooks"
]
@@ -495,16 +491,16 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1684130981,
- "narHash": "sha256-5IPp/rUAOogega5xuRoxcpfkwlGDAyWdizL0Tp2GA4s=",
+ "lastModified": 1684139381,
+ "narHash": "sha256-YPLMeYE+UzxxP0qbkBzv3RBDvyGR5I4d7v2n8dI3+fY=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "d41eea2839de7de0f2cbe4aa90fde5db8afcd30a",
+ "rev": "17a689596b72d1906883484838eb1aaf51ab8001",
"type": "github"
},
"original": {
"id": "nixpkgs",
- "ref": "nixos-22.11",
+ "ref": "nixos-unstable",
"type": "indirect"
}
},
@@ -523,6 +519,37 @@
"type": "indirect"
}
},
+ "nixpkgs_2": {
+ "locked": {
+ "lastModified": 1684139381,
+ "narHash": "sha256-YPLMeYE+UzxxP0qbkBzv3RBDvyGR5I4d7v2n8dI3+fY=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "17a689596b72d1906883484838eb1aaf51ab8001",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_3": {
+ "locked": {
+ "lastModified": 1684130981,
+ "narHash": "sha256-5IPp/rUAOogega5xuRoxcpfkwlGDAyWdizL0Tp2GA4s=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "d41eea2839de7de0f2cbe4aa90fde5db8afcd30a",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "ref": "nixos-22.11",
+ "type": "indirect"
+ }
+ },
"nur": {
"locked": {
"lastModified": 1684194379,
@@ -627,7 +654,7 @@
"nixinate": "nixinate",
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
- "nixpkgs": "nixpkgs",
+ "nixpkgs": "nixpkgs_3",
"nixpkgsUnstable": "nixpkgsUnstable",
"nur": "nur",
"openwrt-imagebuilder": "openwrt-imagebuilder",
diff --git a/flake.nix b/flake.nix
index 592cac8..7507367 100644
--- a/flake.nix
+++ b/flake.nix
@@ -36,7 +36,6 @@
};
getchoo-website = {
url = "github:getchoo/getchoo.github.io";
- inputs.nixpkgs.follows = "nixpkgsUnstable";
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
};
guzzle_api = {
@@ -46,7 +45,6 @@
};
hercules-ci-agent = {
url = "github:hercules-ci/hercules-ci-agent";
- inputs.nixpkgs.follows = "nixpkgsUnstable";
inputs.flake-parts.follows = "flake-parts";
inputs.pre-commit-hooks-nix.follows = "pre-commit-hooks";
};
diff --git a/hosts/p-body/nginx.nix b/hosts/p-body/nginx.nix
index 50a5b92..ae1f251 100644
--- a/hosts/p-body/nginx.nix
+++ b/hosts/p-body/nginx.nix
@@ -1,9 +1,11 @@
{
config,
+ getchoo-website,
pkgs,
...
}: let
inherit (config.networking) domain;
+ website = getchoo-website.packages.${pkgs.system}.default;
in {
networking.firewall.allowedTCPPorts = [80 443];
@@ -35,7 +37,7 @@ in {
serverAliases = ["www.${domain}"];
locations."/" = {
- root = "${pkgs.getchoo-website}/libexec/getchoo-website/deps/getchoo-website/dist/";
+ root = "${website}/libexec/getchoo-website/deps/getchoo-website/dist/";
index = "index.html";
};
};