summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/cd-dvd/installation-cd-graphical-combined.nix
blob: 832b775ad8bd852940a3b06c32220b306873180e (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This configuration uses a specialisation for each desired boot
# configuration, and a common parent configuration for all of them
# that's hidden. This allows users to import this module alongside
# their own and get the full array of specialisations inheriting the
# users' settings.

{ lib, ... }:
{
  imports = [ ./installation-cd-base.nix ];
  isoImage.edition = "graphical";
  isoImage.showConfiguration = lib.mkDefault false;

  specialisation = {
    gnome.configuration =
      { config, ... }:
      {
        imports = [ ./installation-cd-graphical-calamares-gnome.nix ];
        isoImage.showConfiguration = true;
        isoImage.configurationName = "GNOME (Linux LTS)";
      };

    gnome_latest_kernel.configuration =
      { config, ... }:
      {
        imports = [
          ./installation-cd-graphical-calamares-gnome.nix
          ./latest-kernel.nix
        ];
        isoImage.showConfiguration = true;
        isoImage.configurationName = "GNOME (Linux ${config.boot.kernelPackages.kernel.version})";
      };

    plasma.configuration =
      { config, ... }:
      {
        imports = [ ./installation-cd-graphical-calamares-plasma6.nix ];
        isoImage.showConfiguration = true;
        isoImage.configurationName = "Plasma (Linux LTS)";
      };

    plasma_latest_kernel.configuration =
      { config, ... }:
      {
        imports = [
          ./installation-cd-graphical-calamares-plasma6.nix
          ./latest-kernel.nix
        ];
        isoImage.showConfiguration = true;
        isoImage.configurationName = "Plasma (Linux ${config.boot.kernelPackages.kernel.version})";
      };
  };
}