init
This commit is contained in:
11
.envrc
Normal file
11
.envrc
Normal file
@@ -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
|
||||
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# direnv
|
||||
.direnv/
|
||||
|
||||
# nix
|
||||
result
|
||||
result-*
|
||||
31
devshell.nix
Normal file
31
devshell.nix
Normal file
@@ -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
|
||||
'';
|
||||
}
|
||||
64
flake.lock
generated
Normal file
64
flake.lock
generated
Normal 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": 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
|
||||
}
|
||||
13
flake.nix
Normal file
13
flake.nix
Normal file
@@ -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; };
|
||||
}
|
||||
Reference in New Issue
Block a user