commit ec12c3826b159260f8389184290397f59cbf5410 Author: Sin Ser'hao Date: Tue Dec 30 16:05:18 2025 +0100 init diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..9978ef0 --- /dev/null +++ b/.envrc @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Used by https://direnv.net + +# Automatically reload when this file changes +watch_file devshell.nix + +# Load `nix develop` +use flake + +# Extend the environment with per-user overrides +source_env_if_exists .envrc.local diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12731de --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# direnv +.direnv/ + +# nix +result +result-* diff --git a/devshell.nix b/devshell.nix new file mode 100644 index 0000000..6c6cb74 --- /dev/null +++ b/devshell.nix @@ -0,0 +1,31 @@ +{ pkgs }: +pkgs.mkShell { + # Add build dependencies + packages = with pkgs; [ + yazi + ouch + asciinema + posting + helix + wget + httpie + nushell + + vscode-langservers-extracted + markdown-oxide + marksman + nil + nixfmt + nixd + systemd-language-server + ]; + + # Add environment variables + env = { }; + + # Load custom bash code + shellHook = '' + nu + exit 0 + ''; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7e38c6c --- /dev/null +++ b/flake.lock @@ -0,0 +1,64 @@ +{ + "nodes": { + "blueprint": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1763308703, + "narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=", + "owner": "numtide", + "repo": "blueprint", + "rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "blueprint", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1766902085, + "narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "blueprint": "blueprint", + "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..d4f031d --- /dev/null +++ b/flake.nix @@ -0,0 +1,13 @@ +{ + description = "Simple flake with a devshell"; + + # Add all your dependencies here + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; + blueprint.url = "github:numtide/blueprint"; + blueprint.inputs.nixpkgs.follows = "nixpkgs"; + }; + + # Load the blueprint + outputs = inputs: inputs.blueprint { inherit inputs; }; +}