From 00ca5f8b8d5e5627a69c12bd58df989e14e81f75 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 1 Jun 2025 21:07:52 +0800 Subject: [PATCH] feat(systems/x86_64-linux): add mellinoe --- modules/nixos/hardware/cpu.nix | 4 +++ systems/x86_64-linux/mellinoe/default.nix | 35 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 systems/x86_64-linux/mellinoe/default.nix diff --git a/modules/nixos/hardware/cpu.nix b/modules/nixos/hardware/cpu.nix index 99e09bf..7f95f6a 100644 --- a/modules/nixos/hardware/cpu.nix +++ b/modules/nixos/hardware/cpu.nix @@ -5,5 +5,9 @@ hardware.cpu.amd.updateMicrocode = true; boot.kernelModules = [ "kvm-amd" ]; }) + (lib.mkIf (config.hardware.platform == "intel") { + hardware.cpu.intel.updateMicrocode = true; + boot.kernelModules = [ "kvm-intel" ]; + }) ]; } diff --git a/systems/x86_64-linux/mellinoe/default.nix b/systems/x86_64-linux/mellinoe/default.nix new file mode 100644 index 0000000..81296c4 --- /dev/null +++ b/systems/x86_64-linux/mellinoe/default.nix @@ -0,0 +1,35 @@ +{ lib, ... }: +{ + + system = { + hostname = "mellinoe"; + mainUser.name = "rafiq"; + mainUser.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"; + bootloader = "systemd-boot"; + }; + + hardware = { + drives.btrfs = { + enable = true; + drive = "/dev/disk/by-id/nvme-KBG40ZPZ128G_TOSHIBA_MEMORY_Z0U103PCNCDL"; + ephemeralRoot = true; + }; + platform = "intel"; + }; + + desktop = { + windowManager = "hyprland"; + browser = "firefox"; + terminal = "ghostty"; + lockscreen = "hyprlock"; + notification-daemon = "mako"; + launcher = "fuzzel"; + status-bar = "waybar"; + }; + + server = { + mountHelios = true; + }; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}