blob: 23c0cd94f67f5e54e4e610b0904c0fadb4f2de5f (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
description = "Minimal NixOS installation media";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
outputs =
{
self,
nixpkgs,
}:
{
packages.x86_64-linux.default = self.nixosConfigurations.chaos.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") ];
boot.kernelParams = [ "console=ttyS0,115200n8" ];
boot.loader.grub.extraConfig = ''
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input serial
terminal_output serial
'';
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";
wireless = {
enable = true;
networks.Quentinternational.pskRaw = "ext:psk_hotspot";
secretsFile = "/run/secrets/wireless.conf";
};
};
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";
};
environment.systemPackages = with pkgs; [
vim
];
}
)
];
};
};
}
|