Package everything #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
arcana/arkheon!5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "package_everything"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Still to be done:
@ -0,0 +1,56 @@{ lib@ -0,0 +1,26 @@{why import a weird outside dep instead of using filesets?
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:excessive configuration
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:excessive
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:excessive
@ -0,0 +1,56 @@{ libArkheon*
thubrecht RaitoBezarius
@ -0,0 +1,26 @@{Ça arrive de pas avoir nix-filter ?
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:On veut uvicorn en prod ou daphne comme la pr de Raito ?
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:we usually rather write
nginxinstead ofreverseProxyand then you plug the NGINX configuration fragment for a virtual host inside of it so you don't repeat yourself
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:excessive option
@ -0,0 +11,4 @@letremoveFilesets = lib.foldl lib.fileset.difference;inbuildPythonPackage rec {I'd attach the frontend inside the backend so you do
arkheon.frontendorarkheon.uito get those staticfiles.@ -0,0 +7,4 @@version = "0.1.0"authors = [{ name="Tom Hubrecht", email="tom@hubrecht.ovh" },{ name="Raito Bezarius", email="masterancpp@gmail.com" },Add yourself @sinavir as one of the author
@ -0,0 +1,9 @@self: super: letnot needed if the frontend is tucked inside of the backend
Various changes, when doing new NixOS modules, aim for a very simple v1, opinionated and all, to avoid writing too much fluff. This enables you to have a working result very fast and an initial footprint that is small.
For backend&frontend, the pattern is to tie frontend with the backend to avoid wondering "what frontend should I take" and backend should be overridden to offer a new frontend if you want to do theming or something at build time.
NGINX configuration fragment are injected directly, take a look at how nixpkgs do it.
OTOH, this is a pretty good start.
@ -0,0 +1,26 @@{Hmm oui quand tu utilises l'overlay (en gros sur les setup où tu sources le dépôt avec npins)
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Vraiment ? on peut plus trop configurer uvicorn (ou whatever serveur asgi) non après ?
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:pourquoi un utilisateur voudrait les configurer? pour override, tu peux juste réécrire le ExecStart directement
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:daphne imho
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Normalement ça devrait suffire
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:The
arkheaon.commandoption has been removed@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Ou pas en fait, mais tu utilises pas cette option actuellement
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Moi je trouve c'est pratique pour l'utilisateur final pour activer ssl et oauth-proxy. Et maintenant je l'utilise aussi
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Nitpick,
vhostest uniquement défini pour ce test, tu pourrais faire :May be we should use something as here (
NixOS/nixpkgs@79baff8812/nixos/modules/services/web-apps/pixelfed.nix (L451)) for nginx config. What do you think ? I am not enough a nixpkgs expert to understand the differences...Ok, we shouldn't. Since we want nginx on by default
@ -0,0 +1,120 @@{ config, pkgs, lib, modulesPath, ... }:Oui
@ -0,0 +91,4 @@nginx.locations = {"/" = {root = pkgs.python3.pkgs.arkheon.frontend.override {backendUrl = "http${lib.optionalString hasSSL "s"}://${cfg.domain}/api";semi-nit: this looks overkill, you know that if the frontend is loaded over TLS, you need to keep using the same scheme for the backend, so frontend should construct the URL via
//.@ -0,0 +26,4 @@)with subtest("API has no error"):# Api is slow to initialize. We should rely on systemd-notify stuff but hard to implementjust wait until the port is open?
Only missing component are UNIX socket support, but it's fine, let's move on.
... and remove the post patch hack maybe
We can push on master for this :p