From a4e17c11bdd00b44090c194db068d28d6f7b7aa2 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 13 Nov 2024 11:51:20 +0100 Subject: [PATCH] added cyberchef. --- configs/nixos/cyberchef.nix | 13 +++++++++++++ configs/nixos/homepage.nix | 8 ++++++++ hosts/cirrostratus/default.nix | 1 + 3 files changed, 22 insertions(+) create mode 100644 configs/nixos/cyberchef.nix diff --git a/configs/nixos/cyberchef.nix b/configs/nixos/cyberchef.nix new file mode 100644 index 0000000..97b47a9 --- /dev/null +++ b/configs/nixos/cyberchef.nix @@ -0,0 +1,13 @@ +{ + inputs, + config, + pkgs, + lib, + ... +}: { + services.nginx.virtualHosts."cyberchef.venberg.xyz" = { + enableACME = true; + forceSSL = true; + root = "${pkgs.cyberchef}/share/cyberchef"; + }; +} diff --git a/configs/nixos/homepage.nix b/configs/nixos/homepage.nix index 074fa3c..8c1b06c 100644 --- a/configs/nixos/homepage.nix +++ b/configs/nixos/homepage.nix @@ -122,6 +122,14 @@ in { description = "Non self hosted Git forge :("; }; } + { + Cyberchef = { + icon="sh-cyberchef.svg"; + href="https://cyberchef.venberg.xyz"; + siteMonitor= "cyberchef.venberg.xyz"; + description= "a data toolbox"; + }; + } ]; } ]; diff --git a/hosts/cirrostratus/default.nix b/hosts/cirrostratus/default.nix index 1b0b52d..46d6945 100644 --- a/hosts/cirrostratus/default.nix +++ b/hosts/cirrostratus/default.nix @@ -23,6 +23,7 @@ inputs.nixpkgs.lib.nixosSystem { ../../configs/nixos/syncthing.nix ../../configs/nixos/grocy.nix ../../configs/nixos/factorio-docker.nix + ../../configs/nixos/cyberchef.nix ({ config, pkgs,