~ruther/nixos-config

ref: 29359bf62e26f7a4139ee778d5cf8aaae5b445b1 nixos-config/nixos/isos/default.nix -rw-r--r-- 792 bytes
29359bf6 — Frantisek Bohacek feat: add gnome iso installatiom image config 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, inputs }:

let
  depsInjectModule = {
    options.deps-inject.inputs = lib.mkOption { type = with lib.types; attrsOf unspecified; };
    config.deps-inject.inputs = inputs;
  };
  systemModule = system: {
    nixpkgs.hostPlatform = system;
  };

  isos = {
    gnome-install-iso = system: lib.nixosSystem {
      modules = [
        ./gnome-installation.nix
        depsInjectModule
        (systemModule system)
      ];
    };

    # dwl-install-iso = system: lib.nixosSystem {
    #   modules = [
    #     ./dwl-installation.nix
    #     depsInjectModule
    #     (systemModule system)
    #   ];
    # };
  };
  systems = [ "x86_64-linux" "aarch64-linux" ];
in lib.genAttrs systems (system:
  lib.mapAttrs
    (name: iso: ((iso system).config.system.build.isoImage))
    isos
)
Do not follow this link