summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares.nix
blob: 59e050fe28462eabf9ba3ece2aa1935fea163c08 (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
# This module adds the calamares installer to the basic graphical NixOS
# installation CD.

{ pkgs, ... }:
let
  calamares-nixos-autostart = pkgs.makeAutostartItem {
    name = "calamares";
    package = pkgs.calamares-nixos;
  };
in
{
  imports = [ ./installation-cd-graphical-base.nix ];

  # required for calamares
  security.polkit.enablePkexecWrapper = true;

  # required for kpmcore to work correctly
  programs.partition-manager.enable = true;

  environment.systemPackages = with pkgs; [
    # Calamares for graphical installation
    calamares-nixos
    calamares-nixos-autostart
    calamares-nixos-extensions
    # Get list of locales
    glibcLocales
  ];

  # Support choosing from any locale
  i18n.supportedLocales = [ "all" ];
}