summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 656853436c6bf8a6e203a067efccc0e9b0741a2d (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
{
  description = "Minimal NixOS installation media";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
  outputs = {
    self,
    nixpkgs,
  }: {
    packages.x86_64-linux.default = self.nixosConfigurations.exampleIso.config.system.build.isoImage;
    nixosConfigurations.chaos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ({
          config,
          pkgs,
          modulesPath,
          ...
        }: {
          imports = [(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")];

          environment.systemPackages = with pkgs; [vim];

          nix.settings.experimental-features = ["nix-command" "flakes"];
          programs.git = {
            enable = true;
            config.user = {
              name = "Root user of ${config.networking.hostName}";
              email = "root@${config.networking.hostName}";
            };
          };

          networking.hostName = "chaos";
          users.users.root.openssh.authorizedKeys.keys = [
            "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4wGbl3++lqCjLUhoRyABBrVEeNhIXYO4371srkRoyq qaristote@latitude-7490"
            "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvPsKWQXX/QsFQjJU0CjG4LllvUVZme45d9JeS/yhLt qaristote@precision-3571"
          ];

          time.timeZone = "Europe/Paris";
          i18n = {
            defaultLocale = "fr_FR.UTF-8";
            extraLocaleSettings.LANG = "en_US.UTF-8";
          };
          console = {
            "font" = "Lat2-Terminus32";
            keyMap = "fr";
          };
        })
      ];
    };
  };
}