diff --git a/flake.lock b/flake.lock index 30ecaef..36331c8 100644 --- a/flake.lock +++ b/flake.lock @@ -126,6 +126,77 @@ "type": "github" } }, + "blueprint": { + "inputs": { + "nixpkgs": [ + "eleakxir", + "bun2nix", + "nixpkgs" + ], + "systems": [ + "eleakxir", + "bun2nix", + "systems" + ] + }, + "locked": { + "lastModified": 1744632722, + "narHash": "sha256-0chvqUV1Kzf8BMQ7MsH3CeicJEb2HeCpwliS77FGyfc=", + "owner": "numtide", + "repo": "blueprint", + "rev": "49bbd5d072b577072f4a1d07d4b0621ecce768af", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "blueprint", + "type": "github" + } + }, + "bun2nix": { + "inputs": { + "blueprint": "blueprint", + "nixpkgs": [ + "eleakxir", + "nixpkgs" + ], + "systems": "systems", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1750682174, + "narHash": "sha256-rUpcATQ0LiY8IYRndqTlPUhF4YGJH3lM2aMOs5vBDGM=", + "owner": "baileyluTCD", + "repo": "bun2nix", + "rev": "85d692d68a5345d868d3bb1158b953d2996d70f7", + "type": "github" + }, + "original": { + "owner": "baileyluTCD", + "repo": "bun2nix", + "type": "github" + } + }, + "eleakxir": { + "inputs": { + "bun2nix": "bun2nix", + "nixpkgs": "nixpkgs_2", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1757934896, + "narHash": "sha256-GaTsUxDRXejRWzndm0d0U7ZNE1WnmpvMPBcxBLQM2Ew=", + "owner": "anotherhadi", + "repo": "eleakxir-temp", + "rev": "f3b525dba7b134538b9adc79a476a1000fce12ac", + "type": "github" + }, + "original": { + "owner": "anotherhadi", + "repo": "eleakxir-temp", + "type": "github" + } + }, "firefox-gnome-theme": { "flake": false, "locked": { @@ -250,7 +321,7 @@ }, "flake-utils": { "inputs": { - "systems": "systems_2" + "systems": "systems_4" }, "locked": { "lastModified": 1731533236, @@ -268,7 +339,7 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_6" + "systems": "systems_8" }, "locked": { "lastModified": 1731533236, @@ -448,9 +519,9 @@ "hyprlang": "hyprlang", "hyprutils": "hyprutils", "hyprwayland-scanner": "hyprwayland-scanner", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs_3", "pre-commit-hooks": "pre-commit-hooks", - "systems": "systems", + "systems": "systems_3", "xdph": "xdph" }, "locked": { @@ -595,7 +666,7 @@ "inputs": { "flake-utils": "flake-utils", "home-manager": "home-manager_2", - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_4" }, "locked": { "lastModified": 1757563845, @@ -678,7 +749,7 @@ }, "nixarr": { "inputs": { - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_5", "vpnconfinement": "vpnconfinement", "website-builder": "website-builder" }, @@ -700,7 +771,7 @@ "inputs": { "flake-compat": "flake-compat_2", "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs_5" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1757639838, @@ -780,6 +851,22 @@ } }, "nixpkgs_10": { + "locked": { + "lastModified": 1756819007, + "narHash": "sha256-12V64nKG/O/guxSYnr5/nq1EfqwJCdD2+cIGmhz3nrE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aaff8c16d7fc04991cac6245bee1baa31f72b1e1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_11": { "locked": { "lastModified": 1755027561, "narHash": "sha256-IVft239Bc8p8Dtvf7UAACMG5P3ZV+3/aO28gXpGtMXI=", @@ -812,6 +899,22 @@ } }, "nixpkgs_3": { + "locked": { + "lastModified": 1757487488, + "narHash": "sha256-zwE/e7CuPJUWKdvvTCB7iunV4E/+G0lKfv4kk/5Izdg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ab0f3607a6c7486ea22229b92ed2d355f1482ee0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { "locked": { "lastModified": 1750776420, "narHash": "sha256-/CG+w0o0oJ5itVklOoLbdn2dGB0wbZVOoDm4np6w09A=", @@ -827,7 +930,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { "lastModified": 1748662220, "narHash": "sha256-7gGa49iB9nCnFk4h/g9zwjlQAyjtpgcFkODjcOQS0Es=", @@ -843,7 +946,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_6": { "locked": { "lastModified": 1754028485, "narHash": "sha256-IiiXB3BDTi6UqzAZcf2S797hWEPCRZOwyNThJIYhUfk=", @@ -859,7 +962,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_7": { "locked": { "lastModified": 1757487488, "narHash": "sha256-zwE/e7CuPJUWKdvvTCB7iunV4E/+G0lKfv4kk/5Izdg=", @@ -875,7 +978,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_8": { "locked": { "lastModified": 1756696532, "narHash": "sha256-6FWagzm0b7I/IGigOv9pr6LL7NQ86mextfE8g8Q6HBg=", @@ -891,7 +994,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_9": { "locked": { "lastModified": 1757034884, "narHash": "sha256-PgLSZDBEWUHpfTRfFyklmiiLBE1i1aGCtz4eRA3POao=", @@ -907,22 +1010,6 @@ "type": "github" } }, - "nixpkgs_9": { - "locked": { - "lastModified": 1756819007, - "narHash": "sha256-12V64nKG/O/guxSYnr5/nq1EfqwJCdD2+cIGmhz3nrE=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "aaff8c16d7fc04991cac6245bee1baa31f72b1e1", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nur": { "inputs": { "flake-parts": [ @@ -953,8 +1040,8 @@ "flake-compat": "flake-compat_3", "flake-parts": "flake-parts_2", "mnw": "mnw", - "nixpkgs": "nixpkgs_7", - "systems": "systems_3" + "nixpkgs": "nixpkgs_8", + "systems": "systems_5" }, "locked": { "lastModified": 1757397598, @@ -1008,13 +1095,14 @@ "root": { "inputs": { "apple-fonts": "apple-fonts", + "eleakxir": "eleakxir", "home-manager": "home-manager", "hyprland": "hyprland", "hyprpanel": "hyprpanel", "nixarr": "nixarr", "nixcord": "nixcord", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_7", "nixpkgs-stable": "nixpkgs-stable", "nvf": "nvf", "sops-nix": "sops-nix", @@ -1109,7 +1197,7 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_8" + "nixpkgs": "nixpkgs_9" }, "locked": { "lastModified": 1757503115, @@ -1130,7 +1218,7 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_4" + "systems": "systems_6" }, "locked": { "lastModified": 1757219159, @@ -1155,9 +1243,9 @@ "firefox-gnome-theme": "firefox-gnome-theme", "flake-parts": "flake-parts_3", "gnome-shell": "gnome-shell", - "nixpkgs": "nixpkgs_9", + "nixpkgs": "nixpkgs_10", "nur": "nur", - "systems": "systems_5", + "systems": "systems_7", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -1180,16 +1268,16 @@ }, "systems": { "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default-linux", + "repo": "default", "type": "github" } }, @@ -1210,16 +1298,16 @@ }, "systems_3": { "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default", + "repo": "default-linux", "type": "github" } }, @@ -1268,6 +1356,36 @@ "type": "github" } }, + "systems_7": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_8": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { @@ -1349,10 +1467,32 @@ "type": "github" } }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "eleakxir", + "bun2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1748243702, + "narHash": "sha256-9YzfeN8CB6SzNPyPm2XjRRqSixDopTapaRsnTpXUEY8=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "1f3f7b784643d488ba4bf315638b2b0a4c5fb007", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, "vicinae": { "inputs": { "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs_10" + "nixpkgs": "nixpkgs_11" }, "locked": { "lastModified": 1757667341, diff --git a/flake.nix b/flake.nix index 2019620..4074e9e 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ url = "github:Gerg-L/spicetify-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + eleakxir.url = "github:anotherhadi/eleakxir-temp"; }; outputs = inputs @ {nixpkgs, ...}: { @@ -54,6 +55,7 @@ inputs.stylix.nixosModules.stylix inputs.sops-nix.nixosModules.sops inputs.nixarr.nixosModules.default + inputs.eleakxir.nixosModules.eleakxir ./hosts/server/configuration.nix ]; }; diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 516eb17..d570523 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -18,6 +18,7 @@ ../../server-modules/adguardhome.nix ../../server-modules/arr.nix ../../server-modules/mealie.nix + ../../server-modules/eleakxir.nix # You should let those lines as is ./hardware-configuration.nix diff --git a/server-modules/eleakxir.nix b/server-modules/eleakxir.nix new file mode 100644 index 0000000..468b29e --- /dev/null +++ b/server-modules/eleakxir.nix @@ -0,0 +1,18 @@ +{config, ...}: { + services.eleakxir = { + enable = true; + port = 9198; + folders = ["/var/lib/eleakxir/leaks/"]; + debug = true; + }; + + nginx.virtualHosts."eleakxir.hadi.diy" = { + useACMEHost = "hadi.diy"; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:${ + toString config.services.eleakxir.port + }"; + }; + }; +}