# SPDX-FileCopyrightText: 2024 Ryan Lahfa # # SPDX-License-Identifier: EUPL-1.2 { config, pkgs, modulesPath, ... }: let parentConfig = config; in { defaultProfile.packages = [ # Levitate enable us to mass-reinstall the system on the fly. # TODO: Test levitation (pkgs.levitate.override { config = { imports = [ "${modulesPath}/network" "${modulesPath}/ssh" "${modulesPath}/hardware.nix" "${modulesPath}/kernel" "${modulesPath}/outputs/tftpboot.nix" "${modulesPath}/outputs.nix" # FIXME: DHCP has a hidden deps on this, shoud be done in a more intelligent way upstream "${modulesPath}/iproute2.nix" (_: { # FIXME: DHCP has a hidden deps on this, shoud be done in a more intelligent way upstream programs.iproute2.enable = true; services = { inherit (parentConfig.services) sshd admin-ip admin-defaultroute4 ; }; }) ]; hostname = "${parentConfig.hostname}-live"; nixpkgs.buildPlatform = builtins.currentSystem; 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; }; }) ]; }