diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 8912d2b..479b8bd 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,13 @@ /source/build/ s3.conf /vendor/ + +# Devenv +.devenv* +devenv.local.nix + +# direnv +.direnv + +# pre-commit +.pre-commit-config.yaml diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..04466fa --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1722813957, + "narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-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..1a108f9 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. +{ + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = + { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = pkgs.mkShell { + buildInputs = with pkgs; [ + bashInteractive + nodePackages.pnpm + nodejs + php82 + php82Packages.composer + ]; + }; + + formatter.${system} = pkgs.nixfmt-rfc-style; + }; +} diff --git a/notes.txt b/notes.txt index 6566703..e4ed9d3 100644 --- a/notes.txt +++ b/notes.txt @@ -6,3 +6,7 @@ sculpin/sculpin-theme-composer-plugin contains a Composer plugin which is curren Do you trust "sculpin/sculpin-theme-composer-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y rm LICENSE README.md publish.sh s3.conf.dist s3-publish.sh + +devenv + +devenv init