chore(machines/ap01/recovery): better scope for pkgs and add zyxel-bootconfig to levitation
All checks were successful
Check meta / check_dns (pull_request) Successful in 18s
Run pre-commit on all files / check (push) Successful in 25s
Check meta / check_meta (pull_request) Successful in 17s
Check workflows / check_workflows (pull_request) Successful in 21s
Build all the nodes / bridge01 (pull_request) Successful in 1m26s
Build all the nodes / ap01 (pull_request) Successful in 2m54s
Build all the nodes / compute01 (pull_request) Successful in 1m51s
Build all the nodes / geo01 (pull_request) Successful in 1m24s
Build all the nodes / geo02 (pull_request) Successful in 1m24s
Build all the nodes / rescue01 (pull_request) Successful in 1m51s
Build all the nodes / storage01 (pull_request) Successful in 1m47s
Build all the nodes / vault01 (pull_request) Successful in 1m40s
Build all the nodes / web01 (pull_request) Successful in 2m13s
Build all the nodes / web02 (pull_request) Successful in 1m30s
Run pre-commit on all files / check (pull_request) Successful in 25s
Build all the nodes / web03 (pull_request) Successful in 1m38s

This is useful to reconfigure A/B in memory.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-12-08 23:51:21 +01:00
parent eb87c9b359
commit 9d5d75a427

View file

@ -9,9 +9,9 @@ let
parentConfig = config;
in
{
defaultProfile.packages = with pkgs; [
defaultProfile.packages = [
# Levitate enable us to mass-reinstall the system on the fly.
(levitate.override {
(pkgs.levitate.override {
config = {
imports = [
"${modulesPath}/network"
@ -43,7 +43,10 @@ in
hostname = "${parentConfig.hostname}-live";
nixpkgs.buildPlatform = builtins.currentSystem;
defaultProfile.packages = [ mtdutils ];
defaultProfile.packages = with pkgs; [
mtdutils
zyxel-bootconfig
];
# Only keep root, which should inherit from DGN access control's root permissions.
users.root = config.users.root;
};