1
0

🏗️」 wip(Refont): Change the strucuture to be a real projet and will certainly never do bash again

This commit is contained in:
2025-01-04 18:21:46 +01:00
parent 774b012871
commit 22f0eaf29e
28 changed files with 2102 additions and 26 deletions

19
.direnv/bin/nix-direnv-reload Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/nfs/homes/adjoly/Documents/inception" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/nfs/homes/adjoly/Documents/inception")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/nfs/homes/adjoly/Documents/inception" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/nfs/homes/adjoly/Documents/inception/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/nfs/homes/adjoly/Documents/inception/.envrc" "/nfs/homes/adjoly/Documents/inception/.direnv"/*.rc

View File

@ -0,0 +1 @@
/nix/store/9gh2nirlric6zhn2vhy1hzbsw32w0vyb-source

View File

@ -0,0 +1 @@
/nix/store/apfqvr9kddcl6fscjvb92p4xdrqzcwk0-source

View File

@ -0,0 +1 @@
/nix/store/cbijv55rjxlhm7nsvpzjhq4lrki6gqdb-source

View File

@ -0,0 +1 @@
/nix/store/jrlbvfn4aw4k37yz8bz4mmfpqr86f0yl-source

View File

@ -0,0 +1 @@
/nix/store/s6agnzjr3kg5sayjy0b0ms52bkvifqrv-source

View File

@ -0,0 +1 @@
/nix/store/72xrqw4v58lk04brbwazk68yi8yxwn1n-nix-shell-env

File diff suppressed because it is too large Load Diff

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

View File

@ -0,0 +1,9 @@
package main
import (
)
func main() {
}

View File

@ -0,0 +1,9 @@
package main
import (
)
func main() {
}

View File

@ -0,0 +1,9 @@
package main
import (
)
func main() {
}

View File

@ -19,9 +19,7 @@ VOLUME /var/lib/mysql
COPY --chmod=0741 healthcheck.sh /healthcheck.sh COPY --chmod=0741 healthcheck.sh /healthcheck.sh
COPY --chmod=0741 docker-entrypoint.sh /docker-entrypoint.sh COPY --chmod=0741 docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
WORKDIR /var/lib/mysql
USER mysql USER mysql
EXPOSE 3306 EXPOSE 3306
CMD [ "mariadbd" ] WORKDIR /var/lib/mysql
ENTRYPOINT [ "/docker-entrypoint" ]

View File

@ -22,8 +22,9 @@
]; ];
packages = with pkgs; [ packages = with pkgs; [
go
git git
vault gopls
inputs.pogit.packages.${pkgs.system}.default inputs.pogit.packages.${pkgs.system}.default
]; ];
}; };

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.keyzox.me/42_adjoly/inception
go 1.23.4

View File

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec "$@"

View File

@ -1,14 +0,0 @@
# Ubuntu container compatibility
[mariadb]
host-cache-size=0
skip-name-resolve
expire_logs_days=10
[client-server]
socket=/run/mariadb/mariadb.sock
!includedir /etc/mysql/mariadb.conf.d
!includedir /etc/mysql/conf.d

View File

@ -1 +0,0 @@
#!/bin/sh

View File

@ -1,3 +0,0 @@
#!/bin/sh
exec "$@"