From ce7fb19e2e8483faae19b67ba30f32f980974d15 Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Fri, 1 Dec 2023 22:51:10 +0530 Subject: [PATCH] chore: update and add nix flake Signed-off-by: Chinmay D. Pai --- content/_index.md | 5 ++-- content/now/_index.md | 10 +++---- flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++ flake.nix | 32 +++++++++++++++++++++++ 4 files changed, 99 insertions(+), 9 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/content/_index.md b/content/_index.md index 616fa42..9c55e18 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,9 +6,9 @@ text_justify = true

"Technically a DevOps, practically an absurdist."

-Hey there! I'm a systems and security enthusiast from Mumbai, India. I currently work at [Zerodha](https://zerodha.com) as a DevOps and Security Engineer, where I mainly solve problems pertaining to container orchestration, pipeline optimizations, and maintaining and enhancing the security and monitoring infrastructures. +Hey there! I'm a systems and security enthusiast living in Bangalore, India. I currently work at [Zerodha](https://zerodha.com) as a DevOps and Security Engineer, where I mainly solve problems pertaining to system orchestration, pipeline optimizations, and maintaining the security and monitoring infrastructure. -My pursuits intrinsically gravitate towards *nix, open-source, privacy, and system infrastructure. In my free time, I try to explore new tech, play video games, read, and occasionally [compose music](https://soundcloud.com/harmonicseventhnoiseprotocol). You may also see what I'm up to right [now](/now). To keep updated with my work, follow me on [GitHub](https://github.com/Thunderbottom) or subscribe to the blog through the [RSS feed](/rss.xml). +My pursuits intrinsically gravitate towards *nix, open-source, privacy, and system infrastructure. In my free time, I like to explore new tech, play video games, occasionally read, and rarely [compose music](https://soundcloud.com/harmonicseventhnoiseprotocol). You may also see what I'm up to right [now](/now). To keep updated with my work, check out my [Gitea](https://git.deku.moe) or [GitHub](https://github.com/Thunderbottom) or subscribe to the blog through the [RSS feed](/rss.xml). _Jinsei wa daijoubudesu._ @@ -18,4 +18,3 @@ _Jinsei wa daijoubudesu._ - **Social Media**: I go by the username `@Thunderbottom` on: - [GitHub](https://github.com/Thunderbottom) - [Lobsters](https://lobste.rs/u/Thunderbottom) - - [Telegram](https://t.me/Thunderbottom) diff --git a/content/now/_index.md b/content/now/_index.md index 2f61303..6814099 100644 --- a/content/now/_index.md +++ b/content/now/_index.md @@ -7,9 +7,9 @@ text_justify = true ### Personal -- Setting up a server infrastructure running Hashistack -- Building a [Pritunl](https://pritunl.com) SSH renewal client in Go -- Learning and practising [Stoicism](https://plato.stanford.edu/entries/stoicism/) +- Spending [my life](https://git.deku.moe/thunderbottom/nixos-config) on setting up NixOS. +- Exploring [Netbird](https://netbird.io) as a P2P VPN. +- Learning and practising [Stoicism](https://plato.stanford.edu/entries/stoicism/). ### Reading @@ -18,6 +18,4 @@ text_justify = true ### Playing -- Hollow Knight -- Kentucky Route Zero -- Stardew Valley +Nothing right now. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8d637dd --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1701336116, + "narHash": "sha256-kEmpezCR/FpITc6yMbAh4WrOCiT2zg5pSjnKrq51h5Y=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f5c27c6136db4d76c30e533c20517df6864c46ee", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4cf6da2 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "maych.in for Nix"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages.maych-in = pkgs.stdenv.mkDerivation rec { + pname = "maych-in"; + version = "2023-12-01"; + src = ./.; + nativeBuildInputs = [pkgs.zola]; + buildPhase = "zola build"; + installPhase = "cp -r public $out"; + }; + defaultPackage = self.packages.${system}.maych-in; + devShell = pkgs.mkShell { + packages = with pkgs; [ + zola + ]; + }; + } + ); +}