summaryrefslogtreecommitdiffstats
path: root/systems/oai/config.nix
blob: b802c7ede2fb7657981aeacaa58c7dfdc8488ac5 (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
{ modulesPath, pkgs, ... }: {
	imports = [
		(modulesPath + "/profiles/qemu-guest.nix")
	];

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  networking.hostName = "oai";

  boot.kernelParams = [
    "console=ttyS0"
    "console=tty1"
    "nvme.shutdown_timeout=10"
    "libiscsi.debug_libiscsi_eh=1"
    "net.ifnames=0"
  ];

  boot.initrd.kernelModules = [
    "nvme"
  ];

  networking.useDHCP = false;
  networking.interfaces.eth0.useDHCP = true;

  environment.systemPackages = [
    pkgs.vim
  ];

  fileSystems."/" = {
    device = "/dev/disk/by-label/root";
    fsType = "ext4";
  };
  fileSystems."/boot" = {
    device = "/dev/disk/by-label/boot";
    fsType = "vfat";
  };

  services.openssh.enable = true;

  system.stateVersion = "23.05";
}