patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
To: devel@spectrum-os.org
Cc: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
Subject: [PATCH] rootfs: support default package list extension
Date: Mon,  9 Jan 2023 15:52:36 +0200	[thread overview]
Message-ID: <20230109135236.365413-1-ivan.nikolaenko@unikie.com> (raw)

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



                 reply	other threads:[~2023-01-09 13:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230109135236.365413-1-ivan.nikolaenko@unikie.com \
    --to=ivan.nikolaenko@unikie.com \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).