From 12f072b749f978234e360b89d5e2fda9424c11be Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 29 Jul 2023 13:59:55 +0200 Subject: Feat(host/isimud): Add host isimud for gpg-iso --- hosts/isimud/default.nix | 20 ++++++++++++++++++++ hosts/isimud/hardware/default.nix | 21 +++++++++++++++++++++ hosts/isimud/networking.nix | 11 +++++++++++ 3 files changed, 52 insertions(+) create mode 100644 hosts/isimud/default.nix create mode 100644 hosts/isimud/hardware/default.nix create mode 100644 hosts/isimud/networking.nix (limited to 'hosts/isimud') 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"; +} -- cgit 1.4.1