about summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/hostinfo.toml3
-rw-r--r--hosts/isimud/default.nix20
-rw-r--r--hosts/isimud/hardware/default.nix21
-rw-r--r--hosts/isimud/networking.nix11
4 files changed, 55 insertions, 0 deletions
diff --git a/hosts/hostinfo.toml b/hosts/hostinfo.toml
index 27125170..4ee5918c 100644
--- a/hosts/hostinfo.toml
+++ b/hosts/hostinfo.toml
@@ -12,3 +12,6 @@ description = "This is my config running on a vm"
 
 [Marduk]
 description = "This is a small compilation target, to get a install-iso"
+
+[Marduk]
+description = "A host mainly used to setup private gpg keys, without network access or other such things"
diff --git a/hosts/isimud/default.nix b/hosts/isimud/default.nix
new file mode 100644
index 00000000..8c5387ef
--- /dev/null
+++ b/hosts/isimud/default.nix
@@ -0,0 +1,20 @@
+{...}: {
+  imports = [
+    ./hardware
+    ./networking.nix
+  ];
+
+  console = {
+    keyMap = "dvorak";
+  };
+
+  # enable gnome
+  services.xserver = {
+    enable = true;
+    layout = "dvorak";
+    displayManager.gdm.enable = true;
+    desktopManager.gnome.enable = true;
+  };
+
+  system.stateVersion = "23.05";
+}
diff --git a/hosts/isimud/hardware/default.nix b/hosts/isimud/hardware/default.nix
new file mode 100644
index 00000000..da4ded8d
--- /dev/null
+++ b/hosts/isimud/hardware/default.nix
@@ -0,0 +1,21 @@
+{
+  lib,
+  pkgs,
+  modulesPath,
+  ...
+}: {
+  imports = [
+    (modulesPath + "/installer/scan/not-detected.nix")
+  ];
+
+  hardware.cpu.amd.updateMicrocode = true; # Why not?
+  hardware.cpu.intel.updateMicrocode = true; # Why not?
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+
+  boot = {
+    kernelModules = [];
+    kernelPackages = pkgs.linuxPackages_6_1; # use this kernel, as it's supported by zfs
+    zfs.enableUnstable = true; # Default zfs is "broken" (to nixos) on the newest kernel
+  };
+}
diff --git a/hosts/isimud/networking.nix b/hosts/isimud/networking.nix
new file mode 100644
index 00000000..3dfd7e84
--- /dev/null
+++ b/hosts/isimud/networking.nix
@@ -0,0 +1,11 @@
+{
+  lib,
+  ...
+}: {
+  # Disable networking
+  networking.useDHCP = lib.mkForce false;
+  networking.interfaces = lib.mkForce {};
+  boot.blacklistedKernelModules = ["igb" "iwlwifi" "rtw89"];
+
+  networking.hostName = "isimud";
+}