chore(machines/ap01/recovery): better scope for pkgs
and add zyxel-bootconfig
to levitation
This is useful to reconfigure A/B in memory. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
94201ea7d0
commit
1a06074607
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,9 @@ let
|
||||||
parentConfig = config;
|
parentConfig = config;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
defaultProfile.packages = with pkgs; [
|
defaultProfile.packages = [
|
||||||
# Levitate enable us to mass-reinstall the system on the fly.
|
# Levitate enable us to mass-reinstall the system on the fly.
|
||||||
(levitate.override {
|
(pkgs.levitate.override {
|
||||||
config = {
|
config = {
|
||||||
imports = [
|
imports = [
|
||||||
"${modulesPath}/network"
|
"${modulesPath}/network"
|
||||||
|
@ -47,7 +47,10 @@ in
|
||||||
hostname = "${parentConfig.hostname}-live";
|
hostname = "${parentConfig.hostname}-live";
|
||||||
nixpkgs.buildPlatform = builtins.currentSystem;
|
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.
|
# Only keep root, which should inherit from DGN access control's root permissions.
|
||||||
users.root = config.users.root;
|
users.root = config.users.root;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue