mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-05-10 19:48:47 +02:00
「🎉」 init: Started docker setup
This commit is contained in:
19
.direnv/bin/nix-direnv-reload
Executable file
19
.direnv/bin/nix-direnv-reload
Executable 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
|
1
.direnv/flake-inputs/0xk40jx2z5gi85xdn847dvdy0y0qj0md-source
Symbolic link
1
.direnv/flake-inputs/0xk40jx2z5gi85xdn847dvdy0y0qj0md-source
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/0xk40jx2z5gi85xdn847dvdy0y0qj0md-source
|
1
.direnv/flake-inputs/cbijv55rjxlhm7nsvpzjhq4lrki6gqdb-source
Symbolic link
1
.direnv/flake-inputs/cbijv55rjxlhm7nsvpzjhq4lrki6gqdb-source
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/cbijv55rjxlhm7nsvpzjhq4lrki6gqdb-source
|
1
.direnv/flake-inputs/kdynjy1mbgkdg4p196v9gx6ljpf7q4nk-source
Symbolic link
1
.direnv/flake-inputs/kdynjy1mbgkdg4p196v9gx6ljpf7q4nk-source
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/kdynjy1mbgkdg4p196v9gx6ljpf7q4nk-source
|
1
.direnv/flake-inputs/s3xj0phgrgk6kkjzbyapb6mhrnpgffkp-source
Symbolic link
1
.direnv/flake-inputs/s3xj0phgrgk6kkjzbyapb6mhrnpgffkp-source
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/s3xj0phgrgk6kkjzbyapb6mhrnpgffkp-source
|
1
.direnv/flake-inputs/s6agnzjr3kg5sayjy0b0ms52bkvifqrv-source
Symbolic link
1
.direnv/flake-inputs/s6agnzjr3kg5sayjy0b0ms52bkvifqrv-source
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/s6agnzjr3kg5sayjy0b0ms52bkvifqrv-source
|
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
1
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/y8ziqjynrh9kgwvhn9fcjg97lvy7spgr-nix-shell-env
|
2131
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
Normal file
2131
.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc
Normal file
File diff suppressed because it is too large
Load Diff
10
docker/docker-compose.yml
Normal file
10
docker/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
include:
|
||||
- front-web/compose.yml
|
||||
- vault/compose.yml
|
||||
|
||||
networks:
|
||||
knl_meow:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
site:
|
0
docker/front-web/Dockerfile
Normal file
0
docker/front-web/Dockerfile
Normal file
6
docker/front-web/compose.yml
Normal file
6
docker/front-web/compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
services:
|
||||
front-server:
|
||||
image: caddy:latest
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./public/front:
|
0
docker/vault/Dockerfile
Normal file
0
docker/vault/Dockerfile
Normal file
0
docker/vault/compose.yml
Normal file
0
docker/vault/compose.yml
Normal file
79
flake.lock
generated
Normal file
79
flake.lock
generated
Normal 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
45
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user