🎉」 init: Started docker setup

This commit is contained in:
2025-03-28 15:04:31 +01:00
parent 12dd3b6bf8
commit c6e5717511
16 changed files with 2297 additions and 0 deletions

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

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance")"
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 "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance/.envrc" "/sgoinfre/goinfre/Perso/adjoly/workspace/knl_meowscendance/.direnv"/*.rc

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1 @@
/nix/store/y8ziqjynrh9kgwvhn9fcjg97lvy7spgr-nix-shell-env

File diff suppressed because it is too large Load Diff

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

10
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
include:
- front-web/compose.yml
- vault/compose.yml
networks:
knl_meow:
driver: bridge
volumes:
site:

View File

View File

@ -0,0 +1,6 @@
services:
front-server:
image: caddy:latest
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./public/front:

0
docker/vault/Dockerfile Normal file
View File

0
docker/vault/compose.yml Normal file
View File

79
flake.lock generated Normal file
View File

@ -0,0 +1,79 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1739866667,
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1733096140,
"narHash": "sha256-1qRH7uAUsyQI7R1Uwl4T+XvdNv778H0Nb5njNrqvylY=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
}
},
"pogit": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1738098586,
"narHash": "sha256-jibZsqeSh74PLIsOVdp2jIDiYxTHzlVaat0AXRcpeiU=",
"owner": "y-syo",
"repo": "pogit",
"rev": "29a0535fea029e1c5e7762f187fc259f93927e31",
"type": "github"
},
"original": {
"owner": "y-syo",
"repo": "pogit",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"pogit": "pogit"
}
}
},
"root": "root",
"version": 7
}

45
flake.nix Normal file
View File

@ -0,0 +1,45 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
pogit = {
url = "github:y-syo/pogit";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ nixpkgs, ... }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; };
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell.override { } {
buildInputs = with pkgs; [
];
packages = with pkgs; [
nodejs_22
git
inputs.pogit.packages.${pkgs.system}.default
];
};
}
);
};
}