Skip to content
Snippets Groups Projects
Commit b260776a authored by Jens Nolte's avatar Jens Nolte
Browse files

Optionally do not load config generated from the installation

When installing to an sd-card there is no way to perform an installation
or to aquire the hardware-configuration.nix, so they have to be
optional.
parent eb53536d
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,12 @@ let
layerImports = map layerPath dotfilesConfig.layers;
normalSystemConfiguration = (lib.optionalAttrs (!isIso) {
addInstallResultConfiguration =
if installResult ? addInstallResultConfiguration
then installResult.addInstallResultConfiguration
else true;
normalSystemConfiguration = (lib.optionalAttrs (!isIso && addInstallResultConfiguration) {
# TODO move to machine configuration?
imports = [ (path + "/hardware-configuration.nix") ];
# Bootloader
......@@ -57,8 +62,6 @@ in
useUserPackages = true;
};
_module.args.isIso = lib.mkDefault false;
nixpkgs.overlays = [
(import ./pkgs)
#flakeInputs.q.overlay
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment