all repos — site @ 83d83c8d36494e2b9bb77972f2a55de5f98d2d28

source for my site, found at icyphox.sh

build: add flake.nix, new `vite serve` command
Anirudh Oppiliappan x@icyphox.sh
Thu, 24 Mar 2022 17:48:23 +0530
commit

83d83c8d36494e2b9bb77972f2a55de5f98d2d28

parent

bf45fd473216d3ca4ad05e1debab0e377df4be34

5 files changed, 50 insertions(+), 4 deletions(-)

jump to
M bin/serve.shbin/serve.sh

@@ -1,4 +1,4 @@

#!/bin/sh -python3 -m http.server --directory build &> /dev/null +vite serve & find pages/ | entr vite build
M config.yamlconfig.yaml

@@ -5,3 +5,4 @@ desc: "Computers, security and computer security."

author: name: "Anirudh Oppiliappan" email: "x@icyphox.sh" +default-template: text.html
A flake.lock

@@ -0,0 +1,25 @@

+{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1647350163, + "narHash": "sha256-OcMI+PFEHTONthXuEQNddt16Ml7qGvanL3x8QOl2Aao=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3eb07eeafb52bcbf02ce800f032f18d666a9498d", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +}
A flake.nix

@@ -0,0 +1,18 @@

+{ + description = "icyphox/site"; + + outputs = { self, nixpkgs }: { + devShell.x86_64-linux = + let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in + pkgs.mkShell { + buildInputs = with pkgs; [ + go + gotools + gnumake + entr + ]; + }; + }; +}
M pages/uses.mdpages/uses.md

@@ -30,8 +30,9 @@ now).

## software -**OpenBSD**: Fantastic OS by fantastic devs. What's not to love? Also read -[OpenBSD on the HP Envy 13](/blog/openbsd-hp-envy). +**NixOS**: Had to switch to a Linux distribution for work, and this +seemed liked the least-shit choice. I can't claim I understand even half +of Nix (the language), but it gets the job done. **cwm**: The Calm Window Manager. The best out-of-the-box experience you can get in a window manager. Period.

@@ -43,4 +44,5 @@

**weechat**: IRC client that's infinitely riceable. And the [dotfiles](https://github.com/icyphox/dotfiles) for all software -mentioned, and more. +mentioned, and more. You might be interested in the `old` branch for my +pre-NixOS configs.