diff options
author | Soispha <soispha@vhack.eu> | 2023-07-29 13:59:55 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-29 13:59:55 +0200 |
commit | 12f072b749f978234e360b89d5e2fda9424c11be (patch) | |
tree | 9f3532e755fe720a7aabf06ae8dd4d2396999415 /hosts | |
parent | Fix(hm/conf/gpg): Make the keys mutable (diff) | |
download | nixos-config-12f072b749f978234e360b89d5e2fda9424c11be.tar.gz nixos-config-12f072b749f978234e360b89d5e2fda9424c11be.zip |
Feat(host/isimud): Add host isimud for gpg-iso
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/hostinfo.toml | 3 | ||||
-rw-r--r-- | hosts/isimud/default.nix | 20 | ||||
-rw-r--r-- | hosts/isimud/hardware/default.nix | 21 | ||||
-rw-r--r-- | hosts/isimud/networking.nix | 11 |
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"; +} |