Moving to a web based configurator. Huge changes. Surely a lot of bugfixing to do.

This commit is contained in:
Raphaël Numbus
2026-03-28 21:49:24 +01:00
parent e67dc12f42
commit 29d7eac981
19 changed files with 1469 additions and 563 deletions
+8 -11
View File
@@ -1,20 +1,17 @@
{ modulesPath, config, pkgs, inputs, ... }:
# Do NOT edit this file manually.
# Please use the dedicated script : https://gittea.dev/numbus/numbus.
# This could compromise system stability and is not supported by numbus.
{ config, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
inputs.sops-nix.nixosModules.sops
./custom-configuration.nix
./numbus-generated.nix
];
# System
system.stateVersion = "25.11";
# Secrets management
sops.defaultSopsFile = ./secrets/secrets.yaml;
sops.age.sshKeyPaths = [ "/home/numbus-admin/.ssh/id_ed25519" ];
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
# Secrets
sops.secrets."authorizedSshPublicKeys" = { owner = "numbus-admin"; path = "/home/numbus-admin/.ssh/authorized_keys"; mode = "0600"; };
sops.secrets."smtpPassword" = { owner = "numbus-admin"; mode = "0600"; };
sops.secrets."cloudflareDnsApiToken" = { owner = "numbus-admin"; mode = "0600"; };
}
@@ -0,0 +1,5 @@
# This file is reserved for ADVANCED USERS ONLY.
# Editing could compromise system stability and is not supported by numbus.
# Do NOT set options already managed by numbus. i.e. config.numbus.* and other options (networking, storage, etc.)
# Please use the dedicated script for those options : https://gittea.dev/numbus/numbus.
+8 -4
View File
@@ -1,10 +1,14 @@
# Do NOT edit this file manually.
# Please use the dedicated script : https://gittea.dev/numbus/numbus.
# This could compromise system stability and is not supported by numbus.
{
inputs = {
# Core Nixpkgs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
# Numbus server configuration
numbus.url = "git+https://gittea.dev/numbus/numbus-server";
numbus.inputs.nixpkgs.follows = "nixpkgs";
numbus-server.url = "git+https://gittea.dev/numbus/numbus-server";
numbus-server.inputs.nixpkgs.follows = "nixpkgs";
# Disk-partitioning helper
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
@@ -16,7 +20,7 @@
autoaspm.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, numbus, disko, sops-nix, autoaspm, ... }@inputs: let
outputs = { self, nixpkgs, numbus-server, disko, sops-nix, autoaspm, ... }@inputs: let
# System definition
system = "x86_64-linux";
pkgs = import nixpkgs {
@@ -31,7 +35,7 @@
specialArgs = { inherit inputs; };
modules = [
# Numbus server configuration
numbus.nixosModules.numbus
numbus-server.nixosModules.numbus-server
# Disk-partitioning helper
disko.nixosModules.disko
# Secrets handling
@@ -0,0 +1,10 @@
# Do NOT edit this file manually.
# Please use the dedicated script : https://gittea.dev/numbus/numbus.
# This could compromise system stability and is not supported by numbus.
{ config, pkgs, inputs, ... }:
{
imports = [
inputs.sops-nix.nixosModules.sops
];
@@ -1,4 +1,10 @@
# SSH
authorizedSshPublicKeys: |
$SSH_KEYS_FORMATTED
# SMTP
smtpPassword: "$SMTP_SERVER_PASSWORD"
cloudflareDnsApiToken: "$CLOUDFLARE_DNS_API_TOKEN"
# CLOUDFLARE
cloudflareDnsApiToken: "$CLOUDFLARE_DNS_API_TOKEN"