From 0d337a818fcc1e0cca304c0f8d33dbc55e548fcb Mon Sep 17 00:00:00 2001 From: "Geir O. Jerstad" Date: Tue, 1 Jul 2025 17:03:54 +0200 Subject: [PATCH] initial commit --- .direnv/flake-profile | 1 + .direnv/flake-profile-2-link | 1 + .envrc | 1 + flake.lock | 61 ++++++++++++++++++++++++++++++++++++ flake.nix | 31 ++++++++++++++++++ webshop_app/prd.md | 0 6 files changed, 95 insertions(+) create mode 120000 .direnv/flake-profile create mode 120000 .direnv/flake-profile-2-link create mode 100644 .envrc create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 webshop_app/prd.md diff --git a/.direnv/flake-profile b/.direnv/flake-profile new file mode 120000 index 0000000..c7ae5b7 --- /dev/null +++ b/.direnv/flake-profile @@ -0,0 +1 @@ +flake-profile-2-link \ No newline at end of file diff --git a/.direnv/flake-profile-2-link b/.direnv/flake-profile-2-link new file mode 120000 index 0000000..1c3f436 --- /dev/null +++ b/.direnv/flake-profile-2-link @@ -0,0 +1 @@ +/nix/store/rsbmjvqa6n7vf10pm0cg0fv437ixj57q-nix-shell-env \ No newline at end of file diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..8392d15 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..41bcb32 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1751211869, + "narHash": "sha256-1Cu92i1KSPbhPCKxoiVG5qnoRiKTgR5CcGSRyLpOd7Y=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b43c397f6c213918d6cfe6e3550abfe79b5d1c51", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.05", + "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..1708519 --- /dev/null +++ b/flake.nix @@ -0,0 +1,31 @@ +{ + description = "Simple Node.js v22 development environment for web development"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = import nixpkgs {inherit system;}; + in { + devShells.default = pkgs.mkShell { + buildInputs = [ + pkgs.nodejs + pkgs.git + ]; + shellHook = '' + echo "Node.js development environment ready." + node --version + npm --version + ''; + }; + } + ); +} diff --git a/webshop_app/prd.md b/webshop_app/prd.md new file mode 100644 index 0000000..e69de29