From a8c9c7217bca1a10f79027b2b6c92d9b6f4e6144 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 19 Sep 2025 11:36:05 +0100 Subject: [PATCH] Add basic Nix flake --- drupal-cms/.envrc | 1 + drupal-cms/flake.lock | 27 +++++++++++++++++++++++++++ drupal-cms/flake.nix | 25 +++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 drupal-cms/.envrc create mode 100644 drupal-cms/flake.lock create mode 100644 drupal-cms/flake.nix diff --git a/drupal-cms/.envrc b/drupal-cms/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/drupal-cms/.envrc @@ -0,0 +1 @@ +use flake diff --git a/drupal-cms/flake.lock b/drupal-cms/flake.lock new file mode 100644 index 0000000..e94c767 --- /dev/null +++ b/drupal-cms/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1758198701, + "narHash": "sha256-7To75JlpekfUmdkUZewnT6MoBANS0XVypW6kjUOXQwc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0147c2f1d54b30b5dd6d4a8c8542e8d7edf93b5d", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/drupal-cms/flake.nix b/drupal-cms/flake.nix new file mode 100644 index 0000000..dcb30dd --- /dev/null +++ b/drupal-cms/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = + inputs: + let + system = "x86_64-linux"; + pkgs = import inputs.nixpkgs { inherit system; }; + in + { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ + (php.buildEnv { + extraConfig = '' + memory_limit = 512M + ''; + }) + + sqlite + ]; + }; + }; +}