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
|
@ -1,4 +1,4 @@
|
|||
{ inputs, ... }:
|
||||
{ inputs, profiles, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
|
@ -16,10 +16,9 @@
|
|||
public.ipv6 = "2001:0bc8:3d24::45";
|
||||
vpn.ipv4 = "100.100.45.33";
|
||||
};
|
||||
profiles = with profiles; [ server ];
|
||||
};
|
||||
|
||||
deployment.tags = [ "server" ];
|
||||
|
||||
disko = import ./disko.nix;
|
||||
|
||||
environment.persistence."/persistent" = {
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ vm-simple-network ];
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
local.ipv4 = "192.168.0.66";
|
||||
|
|
|
@ -17,7 +17,10 @@
|
|||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ vm-simple-network ];
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
local.ipv4 = "192.168.0.175";
|
||||
|
|
|
@ -15,7 +15,10 @@
|
|||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ vm-simple-network ];
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
local.ipv4 = "192.168.0.90";
|
||||
|
@ -118,7 +121,10 @@
|
|||
|
||||
fileSystems."/srv".neededForBoot = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.tailscale ];
|
||||
environment.systemPackages = [
|
||||
pkgs.tailscale
|
||||
pkgs.bottom
|
||||
];
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
|
|
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";
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ vm-simple-network ];
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
local.ipv4 = "192.168.0.101";
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
arch = "x86_64-linux";
|
||||
nixpkgs_version = inputs.nixpkgs;
|
||||
hm_version = inputs.home-manager;
|
||||
profiles = with profiles; [ vm-simple-network ];
|
||||
profiles = with profiles; [
|
||||
vm-simple-network
|
||||
server
|
||||
];
|
||||
ips = {
|
||||
public.ipv4 = "82.67.34.230";
|
||||
local.ipv4 = "192.168.0.103";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue