diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ed1214b --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1741865919, + "narHash": "sha256-4thdbnP6dlbdq+qZWTsm4ffAwoS8Tiq1YResB+RP6WE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "573c650e8a14b2faa0041645ab18aed7e60f0c9a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9111dc8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "osbm.dev astro website"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + outputs = { nixpkgs, ...}: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in + { + defaultPackage.x86_64-linux = pkgs.stdenv.mkDerivation { + name = "osbm.dev"; + src = ./.; + buildInputs = [ pkgs.nodejs ]; + installPhase = '' + mkdir -p $out + cp -r * $out + ''; + }; + }; + +} \ No newline at end of file