From d7e7b18c1ac5517b38892169a7741e6543b71cc7 Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 21 Sep 2023 14:51:43 -0500 Subject: [PATCH 1/2] Add basic flake --- .gitignore | 2 ++ flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 41 ++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore index 2bc8b18c8..cc98dc858 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,5 @@ yarn-debug.log # Ignore Docker option files docker-compose.override.yml +/.envrc +/.direnv diff --git a/flake.lock b/flake.lock new file mode 100644 index 000000000..58dc2b84f --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1695145219, + "narHash": "sha256-Eoe9IHbvmo5wEDeJXKFOpKUwxYJIOxKUesounVccNYk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5ba549eafcf3e33405e5f66decd1a72356632b96", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "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 000000000..2015df401 --- /dev/null +++ b/flake.nix @@ -0,0 +1,41 @@ +{ + description = "pict-rs-proxy"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + + overlays = [ + (final: prev: { + nodejs = prev.nodejs_18; + postgresql = prev.postgresql_15; + ruby = prev.ruby_3_2; + }) + ]; + }; + in + { + packages = { + default = pkgs.hello; + }; + + devShell = with pkgs; mkShell { + nativeBuildInputs = [ + icu + libidn + libz + nodejs + postgresql + ruby + yarn + ]; + }; + }); +} From 0c7e49f2b24a2cf63f8768e36ff68bbe2159a8cd Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 21 Sep 2023 14:56:20 -0500 Subject: [PATCH 2/2] re-add default theme --- config/themes.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/themes.yml b/config/themes.yml index 5a8594f74..db22e0bbd 100644 --- a/config/themes.yml +++ b/config/themes.yml @@ -1,3 +1,4 @@ +default: styles/application.scss contrast: styles/contrast.scss contrast-wider: styles/contrast-wider.scss pop: styles/pop.scss