patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] rootfs: support default package list extension
@ 2023-01-09 13:52 Ivan Nikolaenko
  0 siblings, 0 replies; only message in thread
From: Ivan Nikolaenko @ 2023-01-09 13:52 UTC (permalink / raw)
  To: devel; +Cc: Ivan Nikolaenko

This patch will allow users to add their packages to the
Spectrum OS rootfs.

To do so, the user needs to declare a variable "additionalPackages"
in his overlay with the list of required packages.

Please, note that static packages need to be taken from
pkgsStatic list, since additionalPackages are added from pkgs list.

Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
---
 host/rootfs/default.nix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix
index 0a84f55..37c820b 100644
--- a/host/rootfs/default.nix
+++ b/host/rootfs/default.nix
@@ -75,7 +75,8 @@ let
         CONFIG_RMMOD n
       '';
     })
-  ] ++ (with pkgsGui; [ foot westonLite ]);
+  ] ++ (with pkgsGui; [ foot westonLite ])
+    ++ (pkgs.additionalPackages or []);
 
   nixosAllHardware = nixos ({ modulesPath, ... }: {
     imports = [ (modulesPath + "/profiles/all-hardware.nix") ];
-- 
2.34.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-09 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 13:52 [PATCH] rootfs: support default package list extension Ivan Nikolaenko

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).