feat: add nix flake

This commit is contained in:
cato-001 2026-01-02 11:31:22 +01:00 committed by cato
parent e56caff408
commit 2d11922807
5 changed files with 94 additions and 0 deletions

5
.envrc Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
watch_file flake.nix flake.lock devshell.nix
use flake
source_env_if_exists .envrc.local

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
# direnv
.direnv/
# nix
result
result-*

5
devshell.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs }:
pkgs.mkShell {
packages = [ ];
}

64
flake.lock generated Normal file
View file

@ -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": 1767047869,
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"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
}

14
flake.nix Normal file
View file

@ -0,0 +1,14 @@
{
description = "My common project templates";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-25.11";
blueprint = {
url = "github:numtide/blueprint";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.blueprint { inherit inputs; };
}