Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore: cleanup nix

DarkPhoenix270467bc5c65806c
diff --git a/.github/workflows/nix-aiopusher.yml b/.github/workflows/nix-aiopusher.yml
deleted file mode 100644
index 3bac2a3d80..0000000000
--- a/.github/workflows/nix-aiopusher.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: aiopusher
-
-on:
- workflow_dispatch:
- workflow_call:
-
-jobs:
- aiopusher:
- runs-on: nix
-
- steps:
- - uses: actions/checkout@v4
- with:
- ref: ${{ github.head_ref }}
- - name: Run AioPusher
- run: nix run .#workflows.aiopusher
diff --git a/.github/workflows/nix-bumper.yml b/.github/workflows/nix-bumper.yml
deleted file mode 100644
index 0a20359fd8..0000000000
--- a/.github/workflows/nix-bumper.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-name: bumper
-
-on:
- workflow_dispatch:
- pull_request_target:
- branches:
- - develop
- paths:
- - pnpm-lock.yaml
-
-jobs:
- bumper:
- runs-on: nix
-
- permissions:
- contents: write
-
- steps:
- - uses: actions/checkout@v4
- with:
- ref: ${{ github.head_ref }}
- - name: Run Bumper
- run: nix run .#workflows.bumper
diff --git a/.github/workflows/release-nocodb.yml b/.github/workflows/release-nocodb.yml
index f43da3e8ee..afce44af2b 100644
--- a/.github/workflows/release-nocodb.yml
+++ b/.github/workflows/release-nocodb.yml
@@ -114,6 +114,3 @@ jobs:
# with:
# issue_label: 'πŸš€ Status: Ready for Next Release'
# version: ${{ needs.process-input.outputs.target_tag }}
-
- # aiopusher:
- # uses: ./.github/workflows/nix-aiopusher.yml
diff --git a/.sops.yaml b/.sops.yaml
deleted file mode 100644
index 56bedd9719..0000000000
--- a/.sops.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-keys:
- - &sinan age1q5sfy74d53n6jxlgsc2zrsz4wcl9d830nxuagc3wfmdkrrp55ckq9ev6nv
- - &kay age15989j5lkkf2kn5wa2p6qc8wlxjjksc63k5ync8rz8t4e87394pzqm7h4rm
- - &kay-github-runner age1tzzrt9zn2gfef2z9mxfaen4was2smrsj4hdncyk50dfdura86gvqgxprll
-
-creation_rules:
- - path_regex: nix/workflows/aiopusher/.*
- age: >-
- age1q5sfy74d53n6jxlgsc2zrsz4wcl9d830nxuagc3wfmdkrrp55ckq9ev6nv,
- age1tzzrt9zn2gfef2z9mxfaen4was2smrsj4hdncyk50dfdura86gvqgxprll,
- age15989j5lkkf2kn5wa2p6qc8wlxjjksc63k5ync8rz8t4e87394pzqm7h4rm
-
- - age: *sinan
diff --git a/flake.lock b/flake.lock
deleted file mode 100644
index 9c7b2d869f..0000000000
--- a/flake.lock
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "nodes": {
- "nixpkgs": {
- "locked": {
- "lastModified": 1737469691,
- "narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=",
- "owner": "NixOs",
- "repo": "nixpkgs",
- "rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab",
- "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
deleted file mode 100644
index 0d0329d31f..0000000000
--- a/flake.nix
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- description = "Open Source Airtable Alternative";
-
- inputs.nixpkgs.url = "github:NixOs/nixpkgs/nixos-unstable";
-
- outputs =
- inputs@{ self, nixpkgs }:
- let
- lib = nixpkgs.lib;
-
- forSystem =
- f: system:
- f {
- inherit system;
- pkgs = import nixpkgs { inherit system; };
- };
-
- forUnixSystems = f: lib.genAttrs lib.platforms.unix (forSystem f);
- forLinuxSystems = f: lib.genAttrs lib.platforms.linux (forSystem f);
- in
- {
- packages =
- lib.recursiveUpdate
- (forUnixSystems (
- { system, pkgs }:
- {
- workflows = pkgs.callPackage ./nix/workflows { inherit self; };
- nocodb = pkgs.callPackage ./nix/package.nix {
- version =
- if self ? shortRev then
- self.shortRev
- else if self ? dirtyShortRev then
- self.dirtyShortRev
- else
- "not-a-gitrepo";
- };
-
- pnpmDeps = self.packages.${system}.nocodb.pnpmDeps;
- default = self.packages.${system}.nocodb;
- }
- ))
- (
- forLinuxSystems (
- { system, pkgs }:
- {
- docker_sa = pkgs.callPackage ./nix/docker/stand_alone {
- nocodb = self.packages.${system}.nocodb;
- };
- docker_aio = pkgs.callPackage ./nix/docker/all_in_one {
- nocodb = self.packages.${system}.nocodb;
- };
- }
- )
- );
-
- nixosModules = {
- nocodb = import ./nix/module.nix inputs;
- default = self.nixosModules.nocodb;
- };
-
- devShells = forUnixSystems (
- { system, pkgs }:
- {
- nocodb = pkgs.callPackage ./nix/shell.nix {
- nocodb = self.packages.${system}.nocodb;
- };
- default = self.devShells.${system}.nocodb;
- }
- );
- };
-}
diff --git a/nix/docker/all_in_one/confs/nginx.nix b/nix/docker/all_in_one/confs/nginx.nix
deleted file mode 100644
index 0fc2fac7cd..0000000000
--- a/nix/docker/all_in_one/confs/nginx.nix
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- writeTextDir,
- mailcap,
-}:
-writeTextDir "etc/nginx.sed.conf" ''
- pid /run/nginx/nginx.pid;
- error_log stderr;
- daemon off;
-
- events {
- }
-
- http {
- # Load mime types and configure maximum size of the types hash tables.
- include ${mailcap}/etc/nginx/mime.types;
- types_hash_max_size 2688;
- default_type application/octet-stream;
-
- # optimisation
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
-
- # ssl
- ssl_protocols TLSv1.2 TLSv1.3;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
- # Keep in sync with https://ssl-config.mozilla.org/#server=nginx&config=intermediate
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:10m;
- # Breaks forward secrecy: https://github.com/mozilla/server-side-tls/issues/135
- ssl_session_tickets off;
- # We don't enable insecure ciphers by default, so this allows
- # clients to pick the most performant, per https://github.com/mozilla/server-side-tls/issues/260
- ssl_prefer_server_ciphers off;
- # OCSP stapling
- ssl_stapling on;
- ssl_stapling_verify on;
-
- # brotli
- brotli on;
- brotli_static on;
- brotli_comp_level 5;
- brotli_window 512k;
- brotli_min_length 256;
- brotli_types application/atom+xml application/geo+json application/javascript application/json application/ld+json application/manifest+json application/rdf+xml application/vnd.ms-fontobject application/wasm application/x-rss+xml application/x-web-app-manifest+json application/xhtml+xml application/xliff+xml application/xml font/collection font/otf font/ttf image/bmp image/svg+xml image/vnd.microsoft.icon text/cache-manifest text/calendar text/css text/csv text/javascript text/markdown text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/xml;
-
- # gzip
- gzip on;
- gzip_static on;
- gzip_vary on;
- gzip_comp_level 5;
- gzip_min_length 256;
- gzip_proxied expired no-cache no-store private auth;
- gzip_types application/atom+xml application/geo+json application/javascript application/json application/ld+json application/manifest+json application/rdf+xml application/vnd.ms-fontobject application/wasm application/x-rss+xml application/x-web-app-manifest+json application/xhtml+xml application/xliff+xml application/xml font/collection font/otf font/ttf image/bmp image/svg+xml image/vnd.microsoft.icon text/cache-manifest text/calendar text/css text/csv text/javascript text/markdown text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/xml;
- proxy_redirect off;
- proxy_connect_timeout 60s;
- proxy_send_timeout 60s;
- proxy_read_timeout 60s;
- proxy_http_version 1.1;
-
- # don't let clients close the keep-alive connection to upstream. See the nginx blog for details:
- # https://www.nginx.com/blog/avoiding-top-10-nginx-configuration-mistakes/#no-keepalives
- proxy_set_header "Connection" "";
-
- client_max_body_size 0;
- server_tokens off;
-
- server {
- listen 0.0.0.0:80 ;
- listen [::0]:80 ;
- server_name __nocodb_domain__ ;
-
- location / {
- return 301 https://$host$request_uri;
- }
-
- location ^~ /.well-known/acme-challenge/ {
- root /var/lib/acme/_acme-challenge;
- auth_basic off;
- auth_request off;
- }
- }
-
- server {
- listen 0.0.0.0:443 ssl ;
- listen [::0]:443 ssl ;
- server_name __nocodb_domain__ ;
- http2 on;
- proxy_buffering off;
- proxy_request_buffering off;
-
- ssl_certificate /var/lib/acme/__nocodb_domain__/fullchain.pem;
- ssl_certificate_key /var/lib/acme/__nocodb_domain__/key.pem;
- ssl_trusted_certificate /var/lib/acme/__nocodb_domain__/chain.pem;
-
- location ^~ /.well-known/acme-challenge/ {
- root /var/lib/acme/_acme-challenge;
- auth_basic off;
- auth_request off;
- }
-
- location /aiominionocodb {
- proxy_pass http://127.0.0.1:9000;
-
- # recommended proxy headers
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- }
-
- location / {
- proxy_pass http://127.0.0.1:8080;
-
- # recommended proxy headers
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- }
- }
- }
-''
diff --git a/nix/docker/all_in_one/confs/postgres.nix b/nix/docker/all_in_one/confs/postgres.nix
deleted file mode 100644
index a648f8b839..0000000000
--- a/nix/docker/all_in_one/confs/postgres.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- lib,
- writeTextDir,
- writeText,
-}:
-let
- toStr =
- value:
- if true == value then
- "yes"
- else if false == value then
- "no"
- else if lib.isString value then
- "'${lib.replaceStrings [ "'" ] [ "''" ] value}'"
- else
- builtins.toString value;
-
- hba = writeText "pg_hba.conf" ''
- #type database DBuser origin-address auth-method
- # unix socket
- local all all trust
- # ipv4
- host all all 127.0.0.1/32 trust
- # ipv6
- host all all ::1/128 trust
- '';
-
- empty_file = writeText "empty" "";
-in
-writeTextDir "etc/postgresql/postgresql.conf" (
- lib.concatStringsSep "\n" (
- lib.mapAttrsToList (n: v: "${n} = ${toStr v}") (
- lib.filterAttrs (lib.const (x: x != null)) {
- hba_file = builtins.toString hba;
- ident_file = builtins.toString empty_file;
- jit = "off";
- listen_addresses = "localhost";
- log_destination = "stderr";
- log_line_prefix = "[%p] ";
- port = 5432;
- }
- )
- )
-)
diff --git a/nix/docker/all_in_one/confs/valkey.nix b/nix/docker/all_in_one/confs/valkey.nix
deleted file mode 100644
index d3ca60b0f7..0000000000
--- a/nix/docker/all_in_one/confs/valkey.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- writeTextDir,
-}:
-writeTextDir "etc/valkey.conf" ''
- # disable tcp
- port 0
- bind 127.0.0.1
-
- # enable unixsocket
- unixsocket /run/valkey/valkey.sock
- unixsocketperm 777
-''
diff --git a/nix/docker/all_in_one/default.nix b/nix/docker/all_in_one/default.nix
deleted file mode 100644
index a1cf3133d4..0000000000
--- a/nix/docker/all_in_one/default.nix
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- lib,
- dockerTools,
- nocodb,
- postgresql,
- htop,
- s6,
- execline,
- coreutils,
- callPackage,
- s6-rc,
- s6-linux-init,
- util-linux,
- gnugrep,
- vim,
- minio,
- glibc,
- minica,
- gnused,
- nginx,
- nginxModules,
- lego,
- snooze,
- valkey,
-}:
-let
- nginxCustom = nginx.override {
- modules = lib.unique (nginx.modules ++ [ nginxModules.brotli ]);
- };
-
- init = callPackage ./init { };
- s6-services = callPackage ./init/s6-services { };
-
- pgconf = callPackage ./confs/postgres.nix { };
- nginxconf = callPackage ./confs/nginx.nix { };
- valkeyconf = callPackage ./confs/valkey.nix { };
-in
-dockerTools.buildLayeredImage {
- name = "nocodb_aio";
-
- contents = [
- dockerTools.binSh
- dockerTools.caCertificates
-
- nocodb
- postgresql
- snooze
- valkey
- execline.bin
- minio
- nginxCustom
- glibc.getent
- coreutils
-
- util-linux
- gnugrep
- gnused
- minica
- lego
-
- htop
- vim
-
- pgconf
- nginxconf
- valkeyconf
- s6-services
-
- s6
- s6-rc
- s6-linux-init
- ];
-
- config = {
- WorkingDir = "/var/lib";
-
- ExposedPorts = {
- # proxy bypass
- "8080/tcp" = { };
- # ssl redirect & acme-challenge
- "80/tcp" = { };
- # ssl
- "443/tcp" = { };
- # minio
- "9000/tcp" = { };
- };
-
- Entrypoint = [
- (lib.getExe init)
- ];
- };
-}
diff --git a/nix/docker/all_in_one/init/default.nix b/nix/docker/all_in_one/init/default.nix
deleted file mode 100644
index 4ff5741585..0000000000
--- a/nix/docker/all_in_one/init/default.nix
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- writeShellApplication,
- callPackage,
- coreutils,
- cpio,
- mount,
- shadow,
- dockerTools,
- lib,
-}:
-let
- base_dir = "/run/s6-init";
- srv_compile_dir = "/run/s6-service-compiled";
-
- s6-linux-init = callPackage ./s6-linux-init {
- inherit base_dir;
- };
- s6-services = callPackage ./s6-services { };
- env-processor = callPackage ./env-processor { };
-in
-writeShellApplication {
- name = "init";
-
- runtimeInputs = [
- cpio
- coreutils
- mount
- shadow
-
- s6-linux-init
- ];
-
- text = ''
- # make sure /run is up
- if [ ! -e /run ]; then
- # shellcheck disable=SC2016
- echo 'use $docker run with `--tmpfs /run:nodev,nosuid,exec,mode=0755` flag'
- exit 1
- fi
-
- # setup basedir
- mkdir -p ${base_dir}
- cd ${base_dir}/
- cpio --extract -d < ${s6-linux-init}
- cd -
-
- # setup envs
- cp -r ${s6-services}/etc/s6-services /run/s6-service-temp
- ${lib.getExe env-processor}
-
- # compile services
- s6-rc-compile ${srv_compile_dir} /run/s6-service-temp
-
- # setup users & groups
- ${dockerTools.shadowSetup}
- for ident in s6log postgres nocodb minio valkey; do
- groupadd -r "$ident"
- useradd -r -g "$ident" "$ident"
- done
- # nginx
- groupadd -r nogroup
- useradd -r -g nogroup nobody
-
- # required for s6-envuidgid
- cat <<- EOF > /etc/nsswitch.conf
- passwd: files
- group: files
- shadow: files
- EOF
-
- # stateful logs
- mkdir -p /var/log/
-
- # exec into s6-linux-init
- exec ${base_dir}/bin/init
- '';
-}
diff --git a/nix/docker/all_in_one/init/env-processor/default.nix b/nix/docker/all_in_one/init/env-processor/default.nix
deleted file mode 100644
index ac9e1d5670..0000000000
--- a/nix/docker/all_in_one/init/env-processor/default.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- writeShellApplication,
- coreutils,
- s6-portable-utils,
-}:
-writeShellApplication {
- name = "env-processor";
-
- runtimeInputs = [
- coreutils
- s6-portable-utils
- ];
-
- text = builtins.readFile ./env_processor.sh;
-}
diff --git a/nix/docker/all_in_one/init/env-processor/env_processor.sh b/nix/docker/all_in_one/init/env-processor/env_processor.sh
deleted file mode 100755
index e17ea5da45..0000000000
--- a/nix/docker/all_in_one/init/env-processor/env_processor.sh
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/bin/sh
-
-envs_docker_def=' HOME HOSTNAME OLDPWD PATH PORT PWD SHLVL TERM '
-aio_env_prefix='aio_'
-
-nocodb_env_path='/run/nocodb.dynamic.env'
-acme_env_path='/run/acme.dynamic.env'
-minio_env_path='/run/minio.dynamic.env'
-
-aio_pass_dynamic="$({ tr -dc A-Za-z < /dev/urandom | head -c 16 ; : ; })"
-kernal_env_store_dir="/run/kernelenvs"
-s6_services_temp_path='/run/s6-service-temp'
-
-_aio_postgres_enable_default=true
-_aio_minio_enable_default=false
-_aio_ssl_domain_default="localhost"
-_aio_ssl_enable_default=false
-_aio_valkey_enable_default=true
-
-log() {
- echo env processor: "$@"
-}
-
-env_passthrough() {
- for file in "$kernal_env_store_dir"/*; do
- key="$(basename "$file")"
-
- case "$key" in
- "_") continue ;;
- # ignore aio envs
- "$aio_env_prefix"*) continue ;;
- esac
-
- # ignore default docker envs
- case "$envs_docker_def" in
- *" $key "*) continue ;;
- esac
-
- echo "$key=$(cat "$file")" >> "$nocodb_env_path"
- done
-}
-
-env_aio_set() {
- for file in "$kernal_env_store_dir"/*; do
- key="$(basename "$file")"
-
- case "$key" in
- "$aio_env_prefix"*) : ;;
- *) continue ;
- esac
- value="$(cat "$file")"
-
- case "$key" in
- aio_postgres_enable) aio_postgres_enable="$value" ;;
- aio_minio_enable) aio_minio_enable="$value" ;;
- aio_ssl_enable) aio_ssl_enable="$value" ;;
- aio_ssl_domain) aio_ssl_domain="$value" ;;
- aio_ssl_email) aio_ssl_email="$value" ;;
- aio_valkey_enable) aio_valkey_enable="$value" ;;
- *) log ignoring unknown aio env "$key=$value"
- esac
- done
-
- if [ "${aio_minio_enable+set}" != set ]; then
- aio_minio_enable="$_aio_minio_enable_default"
- fi
- if [ "${aio_postgres_enable+set}" != set ]; then
- aio_postgres_enable="$_aio_postgres_enable_default"
- fi
- if [ "${aio_ssl_enable+set}" != set ]; then
- aio_ssl_enable="$_aio_ssl_enable_default"
- fi
- if [ "${aio_ssl_domain+set}" != set ]; then
- aio_ssl_domain="$_aio_ssl_domain_default"
- fi
- if [ "${aio_valkey_enable+set}" != set ]; then
- aio_valkey_enable="$_aio_valkey_enable_default"
- fi
-}
-
-env_aio_act() {
- if "$aio_postgres_enable"; then
- touch "$s6_services_temp_path"/nocodb-srv/dependencies.d/postgresql
-
- cat <<- EOF >> "$nocodb_env_path"
- DATABASE_URL="postgresql:///nocodb?host=/run/postgresql&user=postgres"
- EOF
-
- log enabled postgresql
- fi
-
- if "$aio_minio_enable"; then
- touch "$s6_services_temp_path"/nocodb-srv/dependencies.d/minio
-
- cat <<- EOF >> "$nocodb_env_path"
- NC_S3_BUCKET_NAME="aiominionocodb"
- NC_S3_REGION="us-east-1"
- NC_S3_ACCESS_KEY="$aio_pass_dynamic"
- NC_S3_ACCESS_SECRET="$aio_pass_dynamic"
- NC_S3_FORCE_PATH_STYLE="true"
- EOF
-
- if "$aio_ssl_enable"; then
- cat <<- EOF >> "$nocodb_env_path"
- NC_S3_ENDPOINT="https://${aio_ssl_domain}"
- EOF
- else
- cat <<- EOF >> "$nocodb_env_path"
- NC_S3_ENDPOINT="http://localhost:9000"
- EOF
- fi
-
- cat <<- EOF >> "$minio_env_path"
- MINIO_ROOT_USER="$aio_pass_dynamic"
- MINIO_ROOT_PASSWORD="$aio_pass_dynamic"
- EOF
-
- log enabled minio
- fi
-
- if "$aio_ssl_enable"; then
- if [ "${aio_ssl_email+set}" != set ]; then
- # shellcheck disable=SC2016
- log '$aio_ssl_email must be set with $aio_ssl_enable'
- exit 1
- fi
-
- touch "$s6_services_temp_path"/nocodb-srv/dependencies.d/acme
- cat <<- EOF >> "$acme_env_path"
- aio_ssl_email="$aio_ssl_email"
- EOF
-
- log enabled ssl
- fi
- cat <<- EOF >> "$acme_env_path"
- aio_ssl_domain="$aio_ssl_domain"
- EOF
-
- if "$aio_valkey_enable"; then
- touch "$s6_services_temp_path"/nocodb-srv/dependencies.d/valkey
-
- cat <<- EOF >> "$nocodb_env_path"
- NC_REDIS_URL="redis-socket:///run/valkey/valkey.sock?database=nocodb"
- EOF
-
- log enabled valkey
- fi
-}
-
-##########
-## MAIN ##
-##########
-
-touch "$nocodb_env_path"
-
-s6-dumpenv "$kernal_env_store_dir"
-env_aio_set
-env_aio_act
-env_passthrough
diff --git a/nix/docker/all_in_one/init/s6-linux-init/default.nix b/nix/docker/all_in_one/init/s6-linux-init/default.nix
deleted file mode 100644
index 8afff76cea..0000000000
--- a/nix/docker/all_in_one/init/s6-linux-init/default.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- stdenv,
- # The first thing s6-linux-init does is to mount /run and recursively copy its
- # template into /run/s6-linux-init. Unfortunately the "template" contains
- # setgid directories and named pipes, which means it can't be kept in the nix
- # store. In order to put it there, we wrap it in a cpio archive;
- # unfortunately this means that we must run our own /run-mounting and
- # cpio-unpacking script ahead of s6-linux-init's `init`. The mount options
- # for /run are the same as those found in s6-linux-init.c.
- cpio,
- # needed because s6-linux-init-maker expects to be able to create setgid
- # directories, which the Nix sandbox forbids
- fakeroot,
- s6-linux-init,
- base_dir ? "/run/init",
-}:
-
-stdenv.mkDerivation {
- name = "s6-linux-init";
-
- phases = [
- "installPhase"
- "fixupPhase"
- ];
-
- nativeBuildInputs = [
- s6-linux-init
- fakeroot
- cpio
- ];
-
- installPhase = ''
- # patchShebangs skel
- fakeroot s6-linux-init-maker \
- -C -N -1 \
- -f ${./skel} \
- -c ${base_dir} \
- compiled
-
- cd compiled
- find . | cpio -Hnewc --create > $out
- cd -
- '';
-}
diff --git a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.init b/nix/docker/all_in_one/init/s6-linux-init/skel/rc.init
deleted file mode 100755
index f38fe1416f..0000000000
--- a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.init
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh -e
-
-rl="$1"
-shift
-
-### argv now contains the arguments of the kernel command line that are
-### not of the form key=value. (The key=value arguments were stored by
-### s6-linux-init into an envdir, if instructed so via the -s option.)
-### Normally this argv remains unused because programs that need the
-### kernel command line usually read it later on from /proc/cmdline -
-### but just in case, it's available here.
-
-
-### 1. Early preparation
-### This is done only once at boot time.
-### Ideally, this phase should just initialize the service manager.
-
-### If your services are managed by sysv-rc:
-# /etc/init.d/rcS
-
-### If your services are managed by OpenRC:
-# /sbin/openrc sysinit
-# /sbin/openrc boot
-
-### If your services are managed by s6-rc:
-### (replace /run/service with your scandir)
-s6-rc-init -c /run/s6-service-compiled /run/service
-
-
-### 2. Starting the wanted set of services
-### This is also called every time you change runlevels with telinit.
-### (edit the location to suit your installation)
-### By default, $rl is the string "default", unless you changed it
-### via the -D option to s6-linux-init-maker.
-### Numeric arguments from 1 to 5 on the kernel command line will
-### override the default.
-
-# exec /run/s6-init/scripts/runlevel "$rl"
-# no runlevel because -of s6-linux-init -C flag
-exec s6-rc -v2 -u change nocodb
-
-### If this script is run in a container, then 1. and 2. above do not
-### apply and you should just call your CMD, if any, or let your
-### services run.
-### Something like this:
-
-# if test -z "$*" ; then return 0 ; fi
-# $@
-# echo $? > /run/s6-linux-init-container-results/exitcode
-# halt
diff --git a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown b/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown
deleted file mode 100755
index 5a5a013538..0000000000
--- a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh -e
-
-### Things to do before hardware halt/reboot/poweroff.
-### Ideally, it should be a single call to the service manager,
-### telling it to bring all the services down.
-
-### If your s6-linux-init-maker invocation was made with the -1
-### option, messages from rc.shutdown will appear on /dev/console
-### as well as be logged by the catch-all logger.
-### If your s6-linux-init-maker invocation did NOT include the -1
-### option, messages from rc.shutdown will only be logged by the
-### catch-all logger and will NOT appear on /dev/console. In order
-### to print them to /dev/console instead, you may want to
-### uncomment the following line:
-# exec >/dev/console 2>&1
-
-### If your services are managed by sysv-rc:
-### also remove the K11reboot link from /etc/rc6.d to prevent
-### sysv-rc from rebooting prematurely - because sysvinit does
-### not properly separate state changes from system init/shutdown.
-# exec /etc/init.d/rc 6
-
-### If your services are managed by OpenRC:
-### also remove the "killprocs" and "mount-ro" symlinks from
-### /etc/runlevels/shutdown - because OpenRC does not properly
-### separate the service manager from the shutdown manager either.
-# exec /sbin/openrc shutdown
-
-### If your services are managed by s6-rc:
-exec s6-rc -v2 -bDa change
diff --git a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown.final b/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown.final
deleted file mode 100755
index 3f46b87609..0000000000
--- a/nix/docker/all_in_one/init/s6-linux-init/skel/rc.shutdown.final
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -e
-
-### Things to do *right before* the machine gets rebooted or
-### powered off, at the very end of the shutdown sequence,
-### when all the filesystems are unmounted.
-
-### This is a last resort hook; normally nothing should be
-### done here (your rc.shutdown script should have taken care
-### of everything) and you should leave this script empty.
-
-### Some distributions, however, may need to perform some
-### actions after unmounting the filesystems: typically if
-### an additional teardown action is required on a filesystem
-### after unmounting it, or if the system needs to be
-### pivot_rooted before it can be shut down, etc.
-
-### Those are all exceptional cases. If you don't know for
-### certain that you need to do something here, you don't.
diff --git a/nix/docker/all_in_one/init/s6-linux-init/skel/runlevel b/nix/docker/all_in_one/init/s6-linux-init/skel/runlevel
deleted file mode 100755
index b9f293fc2e..0000000000
--- a/nix/docker/all_in_one/init/s6-linux-init/skel/runlevel
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -e
-
-### This script is called once at boot time by rc.init, and is
-### also called by the runleveld service every time the user
-### requests a machine state change via telinit.
-### Ideally, it should just be a call to the service manager.
-
-# test "$#" -gt 0 || { echo 'runlevel: fatal: too few arguments' 1>&2 ; exit 100 ; }
-
-
-### If your services are managed by sysv-rc:
-# exec /etc/init.d/rc "$1"
-
-### If your services are managed by OpenRC:
-# exec /sbin/openrc "$1"
-
-### If your services are managed by s6-rc:
-# exec s6-rc -v2 -up change "$1"
diff --git a/nix/docker/all_in_one/init/s6-services/configs/minio.conf b/nix/docker/all_in_one/init/s6-services/configs/minio.conf
deleted file mode 100644
index c70dca5c66..0000000000
--- a/nix/docker/all_in_one/init/s6-services/configs/minio.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-# Configuration file for the Minio server.
-
-MINIO_REGION="us-east-1"
-MINIO_BROWSER="off"
-
-IMPORTAS_MINIO_LISTEN_ADDRESS="0.0.0.0:9000"
diff --git a/nix/docker/all_in_one/init/s6-services/configs/nocodb.conf b/nix/docker/all_in_one/init/s6-services/configs/nocodb.conf
deleted file mode 100644
index 4dca6e9e42..0000000000
--- a/nix/docker/all_in_one/init/s6-services/configs/nocodb.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# Configuration file for the NocoDB server.
-
-PORT="8080"
diff --git a/nix/docker/all_in_one/init/s6-services/configs/postgresql.conf b/nix/docker/all_in_one/init/s6-services/configs/postgresql.conf
deleted file mode 100644
index 2fda5bce2f..0000000000
--- a/nix/docker/all_in_one/init/s6-services/configs/postgresql.conf
+++ /dev/null
@@ -1,23 +0,0 @@
-# Configuration file for the PostgreSQL server.
-
-# PostgreSQL's database directory
-PGROOT="/var/lib/postgres"
-
-# PostgreSQL's database data directory
-PGDATA="/var/lib/postgres/data"
-
-# PostgreSQL's log file.
-PGLOG="/var/log/postgres.log"
-
-# Passed to initdb if necessary
-INITOPTS="-A peer --auth-host=md5 --auth-local=peer"
-
-# Extra options to run postmaster with, e.g.:
-# -N is the maximal number of client connections
-# -B is the number of shared buffers and has to be at least 2x the value for -N
-# Please read the man-page to postmaster for more options. Many of these options
-# can be set directly in the configuration-file.
-#PGOPTS="-N 512 -B 1024"
-
-# This configures the directives used for s6-log in the log service.
-DIRECTIVES="n3 s2000000 T"
diff --git a/nix/docker/all_in_one/init/s6-services/default.nix b/nix/docker/all_in_one/init/s6-services/default.nix
deleted file mode 100644
index 991b2cb1f9..0000000000
--- a/nix/docker/all_in_one/init/s6-services/default.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- stdenv,
-}:
-
-stdenv.mkDerivation {
- name = "s6-services";
-
- phases = [
- "installPhase"
- "fixupPhase"
- ];
-
- installPhase = ''
- mkdir -p $out/etc
-
- cp -r ${./configs} $out/etc/s6-confs
- cp -r ${./services} $out/etc/s6-services
- '';
-}
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/acme-log/consumer-for
deleted file mode 100644
index 77e83da8fa..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-acme-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/acme-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/acme-log/pipeline-name
deleted file mode 100644
index cdec5c9133..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-acme
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-log/run b/nix/docker/all_in_one/init/s6-services/services/acme-log/run
deleted file mode 100644
index d15b5ec0aa..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-log/run
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/execlineb -P
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/acme }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/acme
-}
-
-foreground { install -d -o s6log -g s6log /run/log/acme }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/acme
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-log/type b/nix/docker/all_in_one/init/s6-services/services/acme-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/shell_up.sh b/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/shell_up.sh
deleted file mode 100755
index 002b03c01d..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/shell_up.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh -e
-
-working_dir="/var/lib/acme"
-
-# setup by ../../../env-processor
-. /run/acme.dynamic.env
-
-mkdir -p "$working_dir"
-cd "$working_dir"
-
-gen_selfsigned() {
- mkdir -p _ca
-
- minica \
- --ca-key _ca/key.pem \
- --ca-cert _ca/cert.pem \
- --domains "$aio_ssl_domain"
-
- cp _ca/cert.pem "$aio_ssl_domain"/chain.pem
- cat "$aio_ssl_domain"/cert.pem "$aio_ssl_domain"/chain.pem > "$aio_ssl_domain"/fullchain.pem
- cat "$aio_ssl_domain"/key.pem "$aio_ssl_domain"/fullchain.pem > "$aio_ssl_domain"/full.pem
-
- touch "$aio_ssl_domain"/selfsigned
-}
-
-[ -d "$aio_ssl_domain" ] || gen_selfsigned
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/type b/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/type
deleted file mode 100644
index bdd22a1850..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/type
+++ /dev/null
@@ -1 +0,0 @@
-oneshot
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/up b/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/up
deleted file mode 100644
index b60a835e88..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-selfsigned/up
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/execlineb -P
-
-/etc/s6-services/acme-selfsigned/shell_up.sh
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-srv/dependencies.d/nginx b/nix/docker/all_in_one/init/s6-services/services/acme-srv/dependencies.d/nginx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/acme-srv/producer-for
deleted file mode 100644
index 661638d2c4..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-acme-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-srv/run b/nix/docker/all_in_one/init/s6-services/services/acme-srv/run
deleted file mode 100644
index 3b5c4e4879..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-srv/run
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/execlineb -P
-
-fdmove -c 2 1
-
-# run on startup and everyday @ 11 AM
-foreground { /etc/s6-services/acme-srv/shell_up.sh }
-snooze -H11 /etc/s6-services/acme-srv/shell_up.sh
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-srv/shell_up.sh b/nix/docker/all_in_one/init/s6-services/services/acme-srv/shell_up.sh
deleted file mode 100755
index 3abeae9eb8..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-srv/shell_up.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh -e
-
-working_dir="/var/lib/acme/_lego"
-webroot_dir="/var/lib/acme/_acme-challenge"
-nginx_pid="$(cat /run/nginx/nginx.pid)"
-
-# setup by ../../../env-processor
-. /run/acme.dynamic.env
-
-mkdir -p "$working_dir"
-mkdir -p "$webroot_dir"
-cd "$working_dir"
-
-
-ssl_renew() {
- lego \
- --accept-tos \
- --path . \
- -d "$aio_ssl_domain" \
- --email "$aio_ssl_email" \
- --key-type ec256 \
- --http --http.webroot "$webroot_dir" --server https://acme-v02.api.letsencrypt.org/directory \
- renew \
- --no-random-sleep \
- --days 30
-}
-
-ssl_run() {
- lego \
- --accept-tos \
- --path . \
- -d "$aio_ssl_domain" \
- --email "$aio_ssl_email" \
- --key-type ec256 \
- --http --http.webroot "$webroot_dir" --server https://acme-v02.api.letsencrypt.org/directory \
- run
-}
-
-ssl_install() {
- rm -rf out
- mkdir out
-
- echo installing new certs for "$aio_ssl_domain"
-
- cp -vp certificates/"$aio_ssl_domain".crt out/fullchain.pem
- cp -vp certificates/"$aio_ssl_domain".key out/key.pem
- cp -vp certificates/"$aio_ssl_domain".crt out/chain.pem
- ln -sf fullchain.pem out/cert.pem
- cat out/key.pem out/fullchain.pem > out/full.pem
-
- rm -rf /var/lib/acme/"$aio_ssl_domain"
- cp -rv out /var/lib/acme/"$aio_ssl_domain"
-
- kill -HUP "$nginx_pid"
-}
-
-if [ -f /var/lib/acme/"$aio_ssl_domain"/adhoc ]; then
- echo "Certificate managed by user"
- exit 0
-fi
-
-if [ ! -f certificates/"$aio_ssl_domain".crt ]; then
- ssl_run
-else
- ssl_renew
-fi && ssl_install
diff --git a/nix/docker/all_in_one/init/s6-services/services/acme-srv/type b/nix/docker/all_in_one/init/s6-services/services/acme-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/acme-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/minio-log/consumer-for
deleted file mode 100644
index 055a535eb8..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-minio-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/minio-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/minio-log/pipeline-name
deleted file mode 100644
index 36f9d86d32..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-minio
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-log/run b/nix/docker/all_in_one/init/s6-services/services/minio-log/run
deleted file mode 100644
index 8fd4c222a1..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-log/run
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/execlineb -P
-
-envfile /etc/s6-confs/minio.conf
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/minio }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/minio
-}
-
-foreground { install -d -o s6log -g s6log /run/log/minio }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/minio
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-log/type b/nix/docker/all_in_one/init/s6-services/services/minio-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/minio-srv/producer-for
deleted file mode 100644
index b51cba3409..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-minio-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-srv/run b/nix/docker/all_in_one/init/s6-services/services/minio-srv/run
deleted file mode 100644
index a746ac0749..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-srv/run
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/execlineb -P
-
-envfile /etc/s6-confs/minio.conf
-envfile /run/minio.dynamic.env
-importas -Sui IMPORTAS_MINIO_LISTEN_ADDRESS
-
-foreground { mkdir -p /var/lib/minio/data/aiominionocodb }
-foreground { chown -R minio:minio /var/lib/minio }
-
-fdmove -c 2 1
-
-s6-setuidgid minio minio server --address $IMPORTAS_MINIO_LISTEN_ADDRESS /var/lib/minio/data
diff --git a/nix/docker/all_in_one/init/s6-services/services/minio-srv/type b/nix/docker/all_in_one/init/s6-services/services/minio-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/minio-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/nginx-log/consumer-for
deleted file mode 100644
index 5253051489..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-nginx-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/nginx-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/nginx-log/pipeline-name
deleted file mode 100644
index 68b7d12d44..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-nginx
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-log/run b/nix/docker/all_in_one/init/s6-services/services/nginx-log/run
deleted file mode 100644
index f417549d03..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-log/run
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/execlineb -P
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/nginx }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/nginx
-}
-
-foreground { install -d -o s6log -g s6log /run/log/nginx }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/nginx
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-log/type b/nix/docker/all_in_one/init/s6-services/services/nginx-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/data/check b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/data/check
deleted file mode 100755
index cd649537d1..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/data/check
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/execlineb -P
-
-test -f /run/nginx/nginx.pid
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/dependencies.d/acme-selfsigned b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/dependencies.d/acme-selfsigned
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/notification-fd b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/producer-for
deleted file mode 100644
index 307d7404c3..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-nginx-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/run b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/run
deleted file mode 100644
index 5822e96ed2..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/run
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/execlineb -P
-
-# setup by ../../../env-processor
-envfile /run/acme.dynamic.env
-importas -uS aio_ssl_domain
-
-foreground { mkdir -p /tmp }
-foreground { mkdir -p /var/lib/nginx }
-foreground { mkdir -p /run/nginx }
-
-foreground { cp /etc/nginx.sed.conf /run/nginx/dynamic.conf }
-foreground { sed s/__nocodb_domain__/${aio_ssl_domain}/g -i /run/nginx/dynamic.conf }
-
-fdmove -c 2 1
-
-s6-notifyoncheck
-nginx -c /run/nginx/dynamic.conf
diff --git a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/type b/nix/docker/all_in_one/init/s6-services/services/nginx-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nginx-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/nocodb-log/consumer-for
deleted file mode 100644
index 3f842fb256..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-nocodb-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/nocodb-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/nocodb-log/pipeline-name
deleted file mode 100644
index 08f3e4fc20..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-nocodb
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/run b/nix/docker/all_in_one/init/s6-services/services/nocodb-log/run
deleted file mode 100644
index 4c47aaeab9..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/run
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/execlineb -P
-
-envfile /etc/s6-confs/nocodb.conf
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/nocodb }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/nocodb
-}
-
-foreground { install -d -o s6log -g s6log /run/log/nocodb }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/nocodb
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/type b/nix/docker/all_in_one/init/s6-services/services/nocodb-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/dependencies.d/nginx b/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/dependencies.d/nginx
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/producer-for
deleted file mode 100644
index d26532b8a9..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-nocodb-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/run b/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/run
deleted file mode 100644
index d7c588236a..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/run
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/execlineb -P
-
-# setup by ../../../env-processor
-envfile /run/nocodb.dynamic.env
-envfile /etc/s6-confs/nocodb.conf
-
-foreground { mkdir -p /var/lib/nocodb }
-foreground { chown -R nocodb:nocodb /var/lib/nocodb }
-foreground { chown nocodb:nocodb /tmp }
-
-# create database if not exists
-foreground {
- if -n {
- pipeline {
- psql -U postgres -tAc SELECT\ 1\ FROM\ pg_database\ WHERE\ datname\ =\ \'nocodb\'
- } grep -q 1
- } psql -U postgres -tAc CREATE\ DATABASE\ \"nocodb\"
-}
-
-fdmove -c 2 1
-
-execline-cd /var/lib/nocodb s6-setuidgid nocodb nocodb
diff --git a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/type b/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/nocodb-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/postgresql-log/consumer-for
deleted file mode 100644
index 7ab98b6670..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-postgresql-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/postgresql-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/postgresql-log/pipeline-name
deleted file mode 100644
index a02a1cc751..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-postgresql
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/run b/nix/docker/all_in_one/init/s6-services/services/postgresql-log/run
deleted file mode 100644
index b3ebd63334..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/run
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/execlineb -P
-
-envfile /etc/s6-confs/postgresql.conf
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/postgresql }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/postgresql
-}
-
-foreground { install -d -o s6log -g s6log /run/log/postgresql }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/postgresql
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/type b/nix/docker/all_in_one/init/s6-services/services/postgresql-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/data/check b/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/data/check
deleted file mode 100755
index a1420a79f2..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/data/check
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/execlineb -P
-
-pg_isready -U postgres
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/notification-fd b/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/producer-for
deleted file mode 100644
index ffe5b68fa5..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-postgresql-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/run b/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/run
deleted file mode 100644
index 491a06f5e4..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/run
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/execlineb -P
-
-envfile /etc/s6-confs/postgresql.conf
-
-importas -uD "/var/lib/postgres" PGROOT PGROOT
-importas -uD "/var/lib/postgres/data" PGDATA PGDATA
-importas -uD "/var/log/postgres.log" PGLOG PGLOG
-importas -sCuD "-A peer --auth-host=md5 --auth-local=peer" INITOPTS INITOPTS
-importas -sCuD "" PGOPTS PGOPTS
-
-foreground { mkdir -p /run/postgresql }
-foreground { chown -R postgres:postgres /run/postgresql }
-
-foreground {
- if { test $PGROOT != /var/lib/postgres }
- foreground { echo Creating symlink /var/lib/postgres -> $PGROOT }
- foreground { if -n { test -L /var/lib/postgres } if { test -d /var/lib/postgres } rmdir /var/lib/postgres }
- foreground { ln -sf $PGROOT /var/lib/postgres }
-}
-
-foreground {
- if -n { test -d $PGDATA }
- foreground { echo Initializing database in $PGDATA }
- foreground { mkdir -p $PGDATA }
- foreground { chown -R postgres:postgres $PGDATA }
- foreground { chmod 0700 $PGDATA }
- foreground { redirfd -w 1 /dev/null s6-setuidgid postgres initdb $INITOPTS -D $PGDATA }
- # TODO: for some reason PGDATA is not being expanded here, look into it
- foreground { ln -sf /etc/postgresql/postgresql.conf /var/lib/postgres/data/postgresql.conf }
-}
-
-fdmove -c 2 1
-
-s6-notifyoncheck
-s6-setuidgid postgres
-postgres -D $PGDATA $PGOPTS
diff --git a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/type b/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/postgresql-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-log/consumer-for b/nix/docker/all_in_one/init/s6-services/services/valkey-log/consumer-for
deleted file mode 100644
index bf85a5c243..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-log/consumer-for
+++ /dev/null
@@ -1 +0,0 @@
-valkey-srv
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-log/notification-fd b/nix/docker/all_in_one/init/s6-services/services/valkey-log/notification-fd
deleted file mode 100644
index 00750edc07..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-log/notification-fd
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-log/pipeline-name b/nix/docker/all_in_one/init/s6-services/services/valkey-log/pipeline-name
deleted file mode 100644
index 83f14fffee..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-log/pipeline-name
+++ /dev/null
@@ -1 +0,0 @@
-valkey
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-log/run b/nix/docker/all_in_one/init/s6-services/services/valkey-log/run
deleted file mode 100644
index a33effbfcb..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-log/run
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/execlineb -P
-
-importas -sCuD "n3 s2000000 1 T" DIRECTIVES DIRECTIVES
-
-ifelse { test -w /var/log } {
- foreground { install -d -o s6log -g s6log /var/log/valkey }
- s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/valkey
-}
-
-foreground { install -d -o s6log -g s6log /run/log/valkey }
-
-s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/valkey
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-log/type b/nix/docker/all_in_one/init/s6-services/services/valkey-log/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-log/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/producer-for b/nix/docker/all_in_one/init/s6-services/services/valkey-srv/producer-for
deleted file mode 100644
index c3e539e32f..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/producer-for
+++ /dev/null
@@ -1 +0,0 @@
-valkey-log
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/run b/nix/docker/all_in_one/init/s6-services/services/valkey-srv/run
deleted file mode 100644
index c05c9cf567..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/run
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/execlineb -P
-
-foreground { mkdir -p /var/lib/valkey }
-foreground { chown -R valkey:valkey /var/lib/valkey }
-foreground { mkdir -p /run/valkey }
-foreground { chown -R valkey:valkey /run/valkey }
-
-fdmove -c 2 1
-
-execline-cd /var/lib/valkey s6-setuidgid valkey valkey-server /etc/valkey.conf
diff --git a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/type b/nix/docker/all_in_one/init/s6-services/services/valkey-srv/type
deleted file mode 100644
index 5883cff0cd..0000000000
--- a/nix/docker/all_in_one/init/s6-services/services/valkey-srv/type
+++ /dev/null
@@ -1 +0,0 @@
-longrun
diff --git a/nix/docker/stand_alone/default.nix b/nix/docker/stand_alone/default.nix
deleted file mode 100644
index ed921d0f1d..0000000000
--- a/nix/docker/stand_alone/default.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- lib,
- dockerTools,
- nocodb,
-}:
-let
- port = 80;
-in
-dockerTools.buildLayeredImage {
- name = "nocodb";
- contents = [ dockerTools.binSh ];
-
- config = {
- WorkingDir = "/var/lib/nocodb";
-
- Env = [
- "PORT=${builtins.toString port}"
- ];
- ExposedPorts = {
- "${builtins.toString port}/tcp" = { };
- };
-
- Entrypoint = [
- (lib.getExe nocodb)
- ];
- };
-}
diff --git a/nix/module.nix b/nix/module.nix
deleted file mode 100644
index 95a489cebd..0000000000
--- a/nix/module.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-inputs:
-{
- config,
- lib,
- pkgs,
- ...
-}:
-
-let
- cfg = config.services.nocodb;
- inherit (pkgs.stdenv.hostPlatform) system;
-
- defaultEnvs = {
- DATABASE_URL = "sqlite:///%S/nocodb/sqlite.db";
- };
-in
-{
- meta.maintainers = with lib.maintainers; [ sinanmohd ];
-
- options.services.nocodb = {
- enable = lib.mkEnableOption "nocodb";
- package = lib.mkOption {
- type = lib.types.package;
- description = "The nocodb package to use.";
- default = inputs.self.packages.${system}.nocodb;
- };
-
- environment = lib.mkOption {
- default = { };
- type = lib.types.attrsOf lib.types.str;
- };
- environmentFile = lib.mkOption {
- type = lib.types.nullOr lib.types.path;
- example = "/var/lib/nocodb/secrets";
- default = null;
- };
- };
-
- config = lib.mkIf cfg.enable {
- environment.systemPackages = [ cfg.package ];
-
- systemd.services.nocodb = {
- description = "Open Source Airtable Alternative";
- wantedBy = [ "multi-user.target" ];
- after = [ "network-online.target" ];
- wants = [ "network-online.target" ];
- environment = defaultEnvs // cfg.environment;
-
- serviceConfig = {
- Type = "simple";
- DynamicUser = true;
- StateDirectory = "nocodb";
- Restart = "on-failure";
- EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
- ExecStart = lib.getExe cfg.package;
- };
- };
- };
-}
diff --git a/nix/package.nix b/nix/package.nix
deleted file mode 100644
index e2f5253e5e..0000000000
--- a/nix/package.nix
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- lib,
- stdenv,
- nodePackages,
- pnpm,
- sqlite,
- pkg-config,
- rsync,
- makeWrapper,
- node-gyp,
- coreutils,
- nettools,
- vips,
- version,
-
- # macos
- xcbuild,
- cctools,
-}:
-
-stdenv.mkDerivation (finalAttrs: {
- inherit version;
-
- pname = "nocodb";
-
- src = lib.cleanSourceWith {
- filter =
- name: type:
- lib.cleanSourceFilter name type
- && !(builtins.elem (baseNameOf name) [
- "nix"
- "flake.nix"
- ]);
-
- src = ../.;
- };
-
- buildPhase = ''
- export NODE_OPTIONS="--max_old_space_size=16384"
- export NUXT_TELEMETRY_DISABLED=1
- export npm_config_nodedir=${nodePackages.nodejs}
-
- pnpm --filter=nocodb-sdk run build
- pnpm run registerIntegrations
- pnpm --filter=nc-gui run build:copy
- pnpm --filter=nocodb run docker:build
- '';
-
- installPhase = ''
- mkdir -p $out/share/nocodb/packages/nocodb
- cp -v ./packages/nocodb/docker/main.js $out/share/nocodb/packages/nocodb/index.js
-
- # only ship nocodb workspace prod deps with node_modules (1.9GB -> 400MB)
- rm -rf ./node_modules ./packages/nocodb/node_modules
- pnpm install \
- --offline \
- --prod \
- --ignore-scripts \
- --filter=nocodb \
- --frozen-lockfile
- # nodejs 22.11.0 -> 22.12.0 broke pnpm rebuild somehow, so let's do it manaully
- # pnpm rebuild -r --verbose --reporter=append-only
- for package in $(find -L packages/nocodb/node_modules -name binding.gyp -type f); do
- cd "$(dirname "$package")"
- node-gyp rebuild
- cd -
- done
-
- cp -r ./node_modules $out/share/nocodb/node_modules
- cp -r ./packages/nocodb/node_modules $out/share/nocodb/packages/nocodb/node_modules
-
- makeWrapper "${lib.getExe nodePackages.nodejs}" "$out/bin/${finalAttrs.pname}" \
- --set NODE_ENV production \
- --set PATH ${
- (lib.makeBinPath [
- coreutils
- nettools
- ])
- # TODO: for ioreg
- + lib.optionalString stdenv.hostPlatform.isDarwin ":/usr/bin"
- } \
- --add-flags "$out/share/nocodb/packages/nocodb/index.js"
- '';
-
- nativeBuildInputs = [
- nodePackages.pnpm
- pnpm.configHook
- node-gyp
-
- rsync
- makeWrapper
- pkg-config
- (nodePackages.nodejs.python.withPackages (p: [
- p.distutils
- ]))
- ];
-
- buildInputs =
- [
- nodePackages.nodejs
- sqlite
- vips
- coreutils # head
- nettools # hostname
- ]
- ++ lib.optionals stdenv.hostPlatform.isDarwin [
- xcbuild
- cctools
- ];
-
- pnpmDeps = pnpm.fetchDeps {
- inherit (finalAttrs) pname version src;
- hash = "sha256-ZGvsnSBOM/yW2aqBwsv/rE/7S6Pg1MvdCiCjbNZv/dw=";
- };
-
- meta = {
- description = "Open Source Airtable Alternative";
- homepage = "https://nocodb.com/";
- platforms = lib.platforms.linux ++ lib.platforms.darwin;
- license = lib.licenses.agpl3Plus;
- mainProgram = finalAttrs.pname;
- maintainers = with lib.maintainers; [ sinanmohd ];
- };
-})
diff --git a/nix/shell.nix b/nix/shell.nix
deleted file mode 100644
index 5135a2e20b..0000000000
--- a/nix/shell.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- mkShell,
- nocodb,
- nixfmt-rfc-style,
- shfmt,
- typescript-language-server,
- nodejs
-}:
-mkShell {
- inputsFrom = [ nocodb ];
-
- buildInputs = [
- nixfmt-rfc-style
- shfmt
- typescript-language-server
- ];
-
- shellHook = ''
- export PS1="\033[0;32m[ ]\033[0m $PS1"
- export NODE_ENV="development"
-
- export npm_config_nodedir=${nodejs}
- pnpm config set store-dir ~/.local/share/pnpm
-
- # since we do not want to dependent on dynamically linked deps,
- # we do not want to cache platform dependent outputs
- pnpm config set side-effects-cache false
- '';
-}
diff --git a/nix/workflows/aiopusher/default.nix b/nix/workflows/aiopusher/default.nix
deleted file mode 100644
index 17be678533..0000000000
--- a/nix/workflows/aiopusher/default.nix
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- writeShellApplication,
- coreutils,
- docker,
- nix,
- sops,
- self,
-}:
-writeShellApplication {
- name = "aiopusher";
-
- runtimeInputs = [
- nix
- docker
- coreutils
- sops
- ];
-
- text = ''
- image="nocodb/nocodb_aio"
-
- note () {
- echo "$@"
- }
-
- secret_get() {
- sops decrypt --extract "[\"app.docker.com\"][\"$1\"]" ${./secrets.yaml}
- }
-
- image_push() {
- # $1: nix arch
- # $2: tag
- package="packages.$1.docker_aio"
- note "updating $image:$2 with $package"
-
- nix build "${self}#$package" -L
- tag="$(docker image load -i result | tail -n1 | cut -d: -f3)"
- id="$(docker image ls --format "{{.ID}}:{{.Tag}}" | grep "$tag" | cut -d: -f1)"
-
- docker image tag "$id" "$image:$2"
- docker push "$image:$2"
- }
-
- multiarch_image_push() {
- # $1: multiarch tag
- # $2: arch tag 1
- # $3: arch tag 1
-
- docker manifest \
- create "$image:$1" \
- --amend "$image:$2" \
- --amend "$image:$3"
-
- docker manifest push "$image:$1"
- }
-
- ########
- # MAIN #
- ########
-
- docker login \
- --username "$(secret_get username)" \
- --password "$(secret_get password)"
-
- image_push x86_64-linux amd64_latest
- image_push aarch64-linux arm64_latest
- multiarch_image_push latest amd64_latest arm64_latest
- '';
-}
diff --git a/nix/workflows/aiopusher/secrets.yaml b/nix/workflows/aiopusher/secrets.yaml
deleted file mode 100644
index 688a7f9d71..0000000000
--- a/nix/workflows/aiopusher/secrets.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-app.docker.com:
- username: ENC[AES256_GCM,data:o+d+haQKzTev,iv:L29Z2GzR7Yfw2z54mhAq2ekBaaPeBvBa0aNBQhzr7Ag=,tag:t1MSFZn99SJ4kzWrxCNzIw==,type:str]
- password: ENC[AES256_GCM,data:9kw0ju2aa0z3yJtjq7Mf9uWh9yZkP87EGFwxVPQshooCGg6K,iv:K/npE4HBMdCcFeJVM62VCjLA2UoGXb5FY9i76FpqDCQ=,tag:vcI00SEfG+p2ayvKggfiGg==,type:str]
-sops:
- kms: []
- gcp_kms: []
- azure_kv: []
- hc_vault: []
- age:
- - recipient: age1q5sfy74d53n6jxlgsc2zrsz4wcl9d830nxuagc3wfmdkrrp55ckq9ev6nv
- enc: |
- -----BEGIN AGE ENCRYPTED FILE-----
- YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBTdVdHcDdWb3htKzB6ZVZq
- Vm1NdjlqN29HNjl1SzNFU0NwQ0xna2d3bUFJCmpUWk04VVpreDdvZTNZd2VWaG1j
- ZFhNOG5Gbm84eUx4Y3VSMEtrL1hhMzAKLS0tIEhYSkZUVlAxRjh5RlJDekJ1ME5E
- Y0R4ckgrVUdXSzR4UGR6ZWRCNEJIalEKJcz5YMc0yWCCZDvunaoM7Ln4cGNA4GKz
- ZJvBTojzdugYFUtUlneJPYdy5oPI6L/pssrzyIwy+D/usTVu6+1wEw==
- -----END AGE ENCRYPTED FILE-----
- - recipient: age1tzzrt9zn2gfef2z9mxfaen4was2smrsj4hdncyk50dfdura86gvqgxprll
- enc: |
- -----BEGIN AGE ENCRYPTED FILE-----
- YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA4eHhPTEo4OXU2Q1pkVjUw
- eHQ5eC9ZQm5zd1hPQ2ZpeDNKb2JjSCtSaGxFCm9DOEVIS2lDSjJjV05QV1hKYjZo
- UUdxVHFxNFhuT1FwdDlRMUNRczdEY3MKLS0tIG80Y3lVRmlRalNpNVpRL2pVN2hE
- cHdNQ3poUVBYVGs4SW5scERKSk5WcFUKixlkeUmcBPCHNjUNclISSVBh09ywLN1f
- 9HIZP5CpR5BXcpGgIZA2GevRBSL3GCOiR9Z4ITqrG7PbVOwPd/e13A==
- -----END AGE ENCRYPTED FILE-----
- - recipient: age15989j5lkkf2kn5wa2p6qc8wlxjjksc63k5ync8rz8t4e87394pzqm7h4rm
- enc: |
- -----BEGIN AGE ENCRYPTED FILE-----
- YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByZXd0c1lMY1VQZ3I3WjBB
- RWdzeUlKQ0lWUzZLcFh5UXpOd281MW9nbmprCkU5MEh1WVRjbFRLQ1BmNW5UYzZ2
- Ymw0K0cwblNOQnNwbTlNaGVNRVBka3cKLS0tIGhLMlAwZ2p4a2c1SmRlNEJGUU9i
- ckRYVCsyeEZLWklVRWJQM2xWdWUwZXMKgtZwNjO5TjvU0phxPuaM3AzPZbuId/CL
- BO42Ctat/dIySbu+acm4pQy6v8HKzSbjjQEDkIkb3FSnoPgDH3S/1g==
- -----END AGE ENCRYPTED FILE-----
- lastmodified: "2025-03-01T10:40:59Z"
- mac: ENC[AES256_GCM,data:SvcHOdOGzgBDo6uQxtMVrO/sz2fXTkUOP643/PoNeQVrYP37L8kdut7g0PoFB+Mw2xiSAOy5v+6uiMg8nKW3ETN+UGoLv5PCwjKzDHTcB2FIfWs9xI5Htv435M/p5MUQptkQf4C6Yu/DbtvHE4Ddq8tU5/F1ZHn4sWMi70bylDo=,iv:XokfhOyIMo+SCw1Ul8mN565WunxZwvc5mE4mDimJDhg=,tag:rnYBBGHBwWCmTH59justFw==,type:str]
- pgp: []
- unencrypted_suffix: _unencrypted
- version: 3.9.3
diff --git a/nix/workflows/bumper/bumper.sh b/nix/workflows/bumper/bumper.sh
deleted file mode 100755
index ab12a156ca..0000000000
--- a/nix/workflows/bumper/bumper.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-commit_message="chore(nix/package/pnpmDeps): bump hash"
-commit_author="auto walle"
-commit_email="[email protected]"
-package_path="nix/package.nix"
-
-hash_get() {
- grep -Eo 'sha256-[^=]*=' "$package_path"
-}
-
-hash_set() {
- sed -i "s|sha256-[A-Za-z0-9+/=]\+|$1|" "$package_path"
-}
-
-early_escape_possible() {
- last_pnpm_time="$(git log -1 --format="%at" pnpm-lock.yaml)"
- last_bump_time=$(git log --oneline --grep="^${commit_message}$" -n 1 --format="%at")
- if [ -z "$last_bump_time" ]; then
- return 1
- fi
-
- if [ "$last_bump_time" -lt "$last_pnpm_time" ]; then
- return 1
- fi
-
- return 0
-}
-
-nix_hash() {
- out="$(mktemp)"
-
- nix build .#pnpmDeps -L > "$out" 2>&1
- tac "$out" | grep -Eom1 'sha256-[^=]*='
-
- rm "$out"
-}
-
-##########
-## MAIN ##
-##########
-
-if [ ! -w "$package_path" ] || [ ! -r "$package_path" ]; then
- echo "$package_path: not writiable or readable"
- exit 1
-fi
-
-if early_escape_possible; then
- echo "early escape success, nix bump commit is newer"
- exit 0
-else
- echo "npm bump commit is newer, updating hash"
-fi
-
-fake_hash="sha256-0000000000000000000000000000000000000000000="
-cur_hash="$(hash_get)"
-hash_set "$fake_hash"
-new_hash="$(nix_hash)"
-
-if [ "$cur_hash" != "$new_hash" ]; then
- echo "hash changed: ${cur_hash} -> ${new_hash}"
- hash_set "$new_hash"
-
- git add "$package_path"
- git config --global user.name "$commit_author"
- git config --global user.email "$commit_email"
- git commit -m "$commit_message"
- git push
-else
- echo "hash did not change: waiting for your next commit"
- hash_set "$cur_hash"
-fi
diff --git a/nix/workflows/bumper/default.nix b/nix/workflows/bumper/default.nix
deleted file mode 100644
index 37a6cc8a7c..0000000000
--- a/nix/workflows/bumper/default.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- writeShellApplication,
- gnugrep,
- gnused,
- git,
- nix,
-}:
-writeShellApplication {
- name = "bumper";
-
- runtimeInputs = [
- gnugrep
- gnused
- git
- nix
- ];
-
- text = builtins.readFile ./bumper.sh;
-}
diff --git a/nix/workflows/default.nix b/nix/workflows/default.nix
deleted file mode 100644
index 0f5c858798..0000000000
--- a/nix/workflows/default.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- callPackage,
- lib,
- self,
-}:
-{
- aiopusher = callPackage ./aiopusher { inherit self; };
- bumper = callPackage ./bumper { };
-}