summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix106
1 files changed, 65 insertions, 41 deletions
diff --git a/flake.nix b/flake.nix
index 6568534..23c0cd9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,50 +1,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.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")];
+ 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") ];
- environment.systemPackages = with pkgs; [vim];
+ 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}";
- };
- };
+ 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"
- ];
+ 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";
- };
- })
- ];
+ 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
+ ];
+ }
+ )
+ ];
+ };
};
- };
}