220622-2131.wiki
1 %title More on how the sausage gets made 2 :ops:nix:blog:meta: 3 %date 2022-06-22 21:31 4 %update 2023-06-07 23:32 5 6 This is final step from the [[220422-1941|previous post]], and remains the only bit that is still manual. 7 Deploying anish.lakhwara.com: 8 9 `cd nix-garden` 10 `nix flake lock --update-input poonam` 11 `deploy .#cube --hostname lakhwara.com` 12 13 14 Those are the 3 commands I still have to run manually from my computer to update my website. I could automate them into a `systemd` service, I haven't yet though. 15 poonam is a small submodule in the private repo containing my [[200927-0111|Kitaab]] that does the filtering. It automatically gets all notes added to the git repo once a day, by a systemd module. 16 17 `nix-garden` is the single git repo that defines all my server infrastructure. Maybe soon I'll be able to open source it. Currently, it still has a couple of secrets I don't want to publically share. You could take a look at [digga](https://github.com/divnix/digga) or [hlissner's dotfiles](https://github.com/hlissner/dotfiles/blob/master/README.md) to get an example of what they contain. 18 You'll notice digga comes with [deploy-rs](ttps://github.com/serokell/deploy-rs) which is how I can deploy my webserver from a git repo on my laptop. Since only the input to poonam changes (in order to update the files that have been edited) and off to the races. 19 20 ----- 21 = Backlinks = 22 23 - [[230604-2148|What Kitaab Is]] 24 - [[230604-2125|Generating Backlinks]] 25 - [[221227-1334|Organizing my Life: Kitaab Edition]] 26 - [[220719-1636|Deploy-rs Requirements]]