forked from DGNum/liminix
move make-image to subdirectory
This commit is contained in:
parent
b7ff973b4b
commit
4cbe669783
3 changed files with 8 additions and 5 deletions
10
default.nix
10
default.nix
|
@ -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 = {
|
||||
|
|
|
@ -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 {};
|
||||
|
|
Loading…
Reference in a new issue