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"; +}