patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] Add image configuration option
@ 2022-09-15  7:35 José Pekkarinen
  2022-09-15  8:21 ` Alyssa Ross
  0 siblings, 1 reply; 13+ messages in thread
From: José Pekkarinen @ 2022-09-15  7:35 UTC (permalink / raw)
  To: devel; +Cc: José Pekkarinen

The following patch proposes to host nix configuration
files under nix folder that offers default configuration
for an image, defaulting to a release image, which would
be plain spectrum. A hardened default configuration will
be proposed in the near future. In case of configuration
collision between the default configuration and config.nix,
the latter will be taken into account.

Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
---
 nix/eval-config.nix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nix/eval-config.nix b/nix/eval-config.nix
index 467f877..09a7ada 100644
--- a/nix/eval-config.nix
+++ b/nix/eval-config.nix
@@ -10,4 +10,5 @@
 
 ({ pkgs ? import <nixpkgs> {} }: {
   inherit pkgs;
-}) config
+}) (if config ? image && builtins.pathExists ./${config.image}.nix then
+      import ./${config.image}.nix else {}) // config
-- 
2.25.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-09-16  7:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15  7:35 [PATCH] Add image configuration option José Pekkarinen
2022-09-15  8:21 ` Alyssa Ross
2022-09-15 10:42   ` José Pekkarinen
2022-09-15 11:31     ` Alyssa Ross
2022-09-15 12:31       ` José Pekkarinen
2022-09-15 13:22         ` Alyssa Ross
2022-09-15 13:48           ` Ville Ilvonen
2022-09-15 14:00             ` Alyssa Ross
2022-09-15 14:09               ` Ville Ilvonen
2022-09-15 14:47                 ` Integrating Spectrum and platform firmware Alyssa Ross
2022-09-16  5:29                   ` Ville Ilvonen
2022-09-16  4:59           ` [PATCH] Add image configuration option José Pekkarinen
2022-09-16  7:25             ` Alyssa Ross

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).