mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
feat: setup arkheon
This commit is contained in:
parent
0ae1917081
commit
2dc55d2a94
14 changed files with 125 additions and 10 deletions
32
machines/lambda/arkheon.nix
Normal file
32
machines/lambda/arkheon.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
age.secrets."arkheon-env".file = ../../secrets/arkheon-env.age;
|
||||
|
||||
nixpkgs.overlays = [ (import (inputs.arkheon.outPath + "/overlay.nix")) ];
|
||||
|
||||
services.arkheon = {
|
||||
enable = true;
|
||||
|
||||
pythonEnv = pkgs.python3.withPackages (ps: [
|
||||
ps.arkheon
|
||||
ps.daphne
|
||||
ps.psycopg2
|
||||
]);
|
||||
|
||||
domain = "arkheon.luj.fr";
|
||||
|
||||
nginx = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
envFile = config.age.secrets."arkheon-env".path;
|
||||
|
||||
};
|
||||
}
|
|
@ -1,15 +1,22 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
profiles,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./home-julien.nix
|
||||
./arkheon.nix
|
||||
];
|
||||
|
||||
machine.meta = {
|
||||
arch = "aarch64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ server ];
|
||||
ips = {
|
||||
public.ipv4 = "141.145.197.219";
|
||||
vpn.ipv4 = "100.100.45.13";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue