From d2a4bbae25cb20dea42851df3763d5c502bf7e91 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sun, 15 Oct 2023 15:07:13 -0500 Subject: [PATCH] feat: resume Signed-off-by: jolheiser --- flake.lock | 24 ++++++++++++++++++++++++ flake.nix | 9 +++++++++ machines/dragonwell/caddy.nix | 5 +++++ 3 files changed, 38 insertions(+) diff --git a/flake.lock b/flake.lock index 09b7313..cd51cc1 100644 --- a/flake.lock +++ b/flake.lock @@ -195,6 +195,29 @@ "type": "github" } }, + "resume": { + "inputs": { + "flake-utils": [ + "flake-utils" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1697399173, + "narHash": "sha256-yr8v3qe/DO9uQ0vsJV7tAnQoL/Pe5eVaq1DGJwOj0eo=", + "ref": "refs/heads/main", + "rev": "bb240e36f1b26acf2f9de1400f4fe46da69afe7a", + "revCount": 4, + "type": "git", + "url": "https://git.jojodev.com/jolheiser/resume" + }, + "original": { + "type": "git", + "url": "https://git.jojodev.com/jolheiser/resume" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -206,6 +229,7 @@ "nixpkgs": "nixpkgs", "nixpkgs-py36": "nixpkgs-py36", "nur": "nur", + "resume": "resume", "tclip": "tclip", "website": "website" } diff --git a/flake.nix b/flake.nix index 7d804a8..4ce5570 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,13 @@ nur.follows = "jolheiser-nur"; }; }; + resume = { + url = "git+https://git.jojodev.com/jolheiser/resume"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; + }; # Other flakes golink = { @@ -62,6 +69,7 @@ jolheiser-nur, helix, website, + resume, nixpkgs-py36, golink, tclip, @@ -77,6 +85,7 @@ nur = inputs.jolheiser-nur.packages.${prev.system}; helix = inputs.helix.packages.${prev.system}.default; website = inputs.website.packages.${prev.system}.default; + resume = inputs.resume.packages.${prev.system}.default; }; tclip = inputs.tclip.packages.${prev.system}.tclip; }) diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix index ca2cc93..619e604 100644 --- a/machines/dragonwell/caddy.nix +++ b/machines/dragonwell/caddy.nix @@ -26,6 +26,11 @@ in { root * /srv/bennet/src file_server } + handle /resume* { + root * ${pkgs.jolheiser.resume} + rewrite /resume /resume.pdf + file_server + } handle { root * ${pkgs.jolheiser.website} file_server