move make-image to subdirectory

This commit is contained in:
Daniel Barlow 2022-09-27 16:06:54 +01:00
parent b7ff973b4b
commit 4cbe669783
3 changed files with 8 additions and 5 deletions

View file

@ -4,6 +4,7 @@
let
overlay = import ./overlay.nix;
nixpkgs = import <nixpkgs> ( device.system // {overlays = [overlay]; });
inherit (nixpkgs.pkgs) callPackage liminix;
config = (import ./merge-modules.nix) [
./modules/base.nix
({ lib, ... } : { config = { inherit (device) kernel; }; })
@ -11,13 +12,12 @@ let
./modules/s6
] nixpkgs.pkgs;
finalConfig = config // {
packages = (with nixpkgs.pkgs; [ s6-rc ]) ++
config.systemPackages ++
packages = config.systemPackages ++
(builtins.attrValues config.services);
};
squashfs = (nixpkgs.pkgs.callPackage ./make-image.nix {}) finalConfig;
kernel = nixpkgs.pkgs.callPackage ./kernel {
inherit (finalConfig.kernel) config;
squashfs = liminix.builders.squashfs finalConfig;
kernel = callPackage ./kernel {
inherit (config.kernel) config;
};
in {
outputs = {

View file

@ -4,6 +4,9 @@ final: prev: {
liminix = {
services = final.callPackage ./pkgs/liminix-tools/services {};
networking = final.callPackage ./pkgs/liminix-tools/networking {};
builders = {
squashfs = final.callPackage ./pkgs/liminix-tools/builders/squashfs.nix {};
};
};
writeAshScript = final.callPackage ./pkgs/write-ash-script {};
s6-init-bin = final.callPackage ./pkgs/s6-init-bin {};