From f4b4dda7e91ea227e10ee191d04a5a8cbd32f774 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Mon, 9 Mar 2026 20:08:02 -0700 Subject: [PATCH] feat: add website --- configuration.nix | 2 + flake.lock | 112 +++++++++++++++++++++++++++++++++++++++++----- flake.nix | 4 ++ 3 files changed, 107 insertions(+), 11 deletions(-) diff --git a/configuration.nix b/configuration.nix index cf81901..cfcde9d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -106,6 +106,8 @@ services.tailscale.authKeyFile = config.age.secrets.tailscale-key.path; # MyMX + services.jetpham-website.enable = true; + services.mymx = { enable = true; webhookSecretFile = config.age.secrets.mymx-webhook.path; diff --git a/flake.lock b/flake.lock index 92021b4..e858673 100644 --- a/flake.lock +++ b/flake.lock @@ -52,11 +52,11 @@ ] }, "locked": { - "lastModified": 1772699110, - "narHash": "sha256-jkyo/9fZVB3F/PHk3fVK1ImxJBZ71DCOYZvAz4R4v4E=", + "lastModified": 1773025010, + "narHash": "sha256-khlHllTsovXgT2GZ0WxT4+RvuMjNeR5OW0UYeEHPYQo=", "owner": "nix-community", "repo": "disko", - "rev": "42affa9d33750ac0a0a89761644af20d8d03e6ee", + "rev": "7b9f7f88ab3b339f8142dc246445abb3c370d3d3", "type": "github" }, "original": { @@ -65,6 +65,24 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -94,11 +112,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1772700454, - "narHash": "sha256-oy425GeM6KjK2NLUnWnoQVbtFD6lDgEXDtTOM6swjkM=", + "lastModified": 1773112411, + "narHash": "sha256-7PCKEfXFgBwaqqEVWq99NiRE7iAaMSzVyrHwuclrEYo=", "ref": "refs/heads/main", - "rev": "8daedbd5b627eba945054f2606adda69e985b6b2", - "revCount": 1, + "rev": "8368cc115eee7c696ed456eabf285a89c308df65", + "revCount": 4, "type": "git", "url": "https://git.extremist.software/jet/mymx" }, @@ -109,11 +127,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1772624091, - "narHash": "sha256-QKyJ0QGWBn6r0invrMAK8dmJoBYWoOWy7lN+UHzW1jc=", + "lastModified": 1772963539, + "narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=", "owner": "nixos", "repo": "nixpkgs", - "rev": "80bdc1e5ce51f56b19791b52b2901187931f5353", + "rev": "9dcb002ca1690658be4a04645215baea8b95f31d", "type": "github" }, "original": { @@ -123,12 +141,29 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1744536153, + "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", "disko": "disko", "mymx": "mymx", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "website": "website" } }, "rust-overlay": { @@ -152,6 +187,24 @@ "type": "github" } }, + "rust-overlay_2": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1772679930, + "narHash": "sha256-FxYmdacqrdDVeE9QqZKTIpNLjv2B8GSKssgwlZuTR98=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "9b741db17141331fdb26270a1b66b81be8be9edd", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1681028828, @@ -166,6 +219,43 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "website": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ], + "rust-overlay": "rust-overlay_2" + }, + "locked": { + "lastModified": 1773113843, + "narHash": "sha256-jReomoePb3G0W4K6PzLsw0XQ8O+7pywQ7K1gMFBhQKY=", + "ref": "refs/heads/main", + "rev": "44da77246df58c1f4c8c53771ac8eae1b4a651ca", + "revCount": 29, + "type": "git", + "url": "https://git.extremist.software/jet/website" + }, + "original": { + "type": "git", + "url": "https://git.extremist.software/jet/website" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 9dc9ded..b5dd818 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,9 @@ mymx.url = "git+https://git.extremist.software/jet/mymx"; mymx.inputs.nixpkgs.follows = "nixpkgs"; + website.url = "git+https://git.extremist.software/jet/website"; + website.inputs.nixpkgs.follows = "nixpkgs"; + agenix.url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs"; }; @@ -21,6 +24,7 @@ modules = [ disko.nixosModules.disko inputs.mymx.nixosModules.default + inputs.website.nixosModules.default inputs.agenix.nixosModules.default ./disk-config.nix