Commit Graph

4 Commits

Author SHA1 Message Date
Matt Schreiber
b34a6ac4e6
No lib.mkForce in system.build.kexec_tarball def'n
on nixpkgs versions prior to the commit that changed
config.system.build's type from a lazy attribute set to a submodule.

Prior to this type change, there is no system.build.kexec_tarball option
declared, so the NixOS module system does not resolve
priorities/overrides in the config.build.kexec_tarball definition.

That is, with lib.mkForce, the config.build.kexec_tarball definition
ends up being something like:

    {
      _type = "override";
      content = <...>;
      priority = 50;
    }

Removing lib.mkForce allows us to successfully and sensibly interpolate
the value (== outPath) of system.build.kexec_tarball in
system.build.kexec_bundle's builder script.

Likewise, no lib.mkOverride for system.build.raw.
2022-06-14 21:32:25 -04:00
Jörg Thalheim
f243a4961d
Makefile: also include format-module.nix 2021-06-18 23:16:36 +02:00
zimbatm
0cce7924f1 Cleanup (#17)
* rename eval-format.nix to nixos-generate.nix

Make it clear that it's meant to be used by the nixos-generate script

* rename config.nix to configuration.nix

Bring the name closer to /etc/nixos/configuration.nix

* fix the NIXOS_CONFIG

this is the env name that nixos-rebuild uses

* use -I to load the configuration and format

This has a nice side-effect of allowing URLs as configuration

* add Travis CI

* cleanSource

* gitignore nix result files

* use modulesPath everywhere

this makes sure that the passed pkgs in nixos-generate.nix is the same
one we use to load these other modules

* use toString to avoid evaluation error
2019-01-31 23:06:29 +01:00
Jörg Thalheim
3fe1d1d26f
make nixos-generators installable 2019-01-22 00:19:28 +00:00