nix: basic installer image generator

This commit is contained in:
Primrose 2024-07-24 22:36:57 +02:00
parent d11b9486eb
commit b49def46ac
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
5 changed files with 130 additions and 3 deletions

View file

@ -1,9 +1,9 @@
{ self, ... }:
{ self, inputs, ... }:
{
flake.lib.mkNerdFont = ./mkNerdFont.nix;
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
let
inherit (pkgs) alt-ergo-pin;
mkNerdFont = pkgs.callPackage self.lib.mkNerdFont { };
@ -37,7 +37,21 @@
maeel = pkgs.callPackage ./maeel.nix { };
tokei = pkgs.callPackage ./tokei { }; # alpha tokei with typst, skel, hledger
posy-cursor = pkgs.callPackage ./posy-cursor.nix { };
carbon-installer = inputs.nixos-generators.nixosGenerate {
inherit system;
specialArgs = {
inherit pkgs;
hostname = "carbon";
};
format = "install-iso";
modules = [
self.nixosModules.layouts
{
environment.etc.flake-source.source = self;
environment.systemPackages = [ pkgs.disko ];
}
];
};
};
};
}