feat: readd mellinoe to flake

This commit is contained in:
Mohammad Rafiq 2025-04-18 22:07:41 +08:00
parent a753ffeec1
commit 1dafd618e2
No known key found for this signature in database
7 changed files with 28 additions and 17 deletions

View file

@ -1,6 +0,0 @@
{ lib, config, ... }:
{
boot.kernelModules = [ "kvm-amd" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,6 +0,0 @@
{ lib, config, ... }:
{
boot.kernelModules = [ "kvm-intel" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -38,7 +38,7 @@
case "$1" in
all)
# Create a list of hostnames to rebuild
hosts=("nemesis" "apollo")
hosts=("nemesis" "apollo" "mellinoe")
# Use parallel to rebuild each host
, parallel rebuild ::: "''${hosts[@]}"
@ -52,6 +52,9 @@
fi
;;
*)
echo "=========================="
echo "=== Rebuilding $1 ==="
echo "=========================="
rebuild_remote "$1"
exit 0
;;

View file

@ -1,6 +1,6 @@
# Set default values
flake=".#default" # Default flake attribute if none is provided
target_host="nixos@<hostname>" # Default target host
flake="" # Default flake attribute if none is provided
target_host="" # Default target host
# Process command-line arguments
while [[ $# -gt 0 ]]; do

View file

@ -34,7 +34,7 @@
(mkSystem "graphical" "nemesis"
"nvme-nvme.c0a9-323332354536453737343334-435432303030503353534438-00000001"
)
# (mkSystem "graphical" "mellinoe" "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab")
(mkSystem "graphical" "mellinoe" "/dev/disk/by-id/nvme-eui.01000000000000008ce38e04019a68ab")
(mkSystem "headless" "apollo" "/dev/disk/by-id/nvme-eui.002538d221b47b01")
];
};

View file

@ -1,8 +1,11 @@
{ lib, config, ... }:
{
imports = [
../configs/bootloaders/systemd-boot.nix
../configs/filesystems/impermanence.nix
../configs/hardware/cpu_intel.nix
../configs/services.nix
];
boot.kernelModules = [ "kvm-intel" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

17
hosts/mellinoe.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs,
lib,
config,
...
}:
{
imports = [
../configs/bootloaders/systemd-boot.nix
../configs/filesystems/impermanence.nix
../configs/hardware/nvidia.nix
inputs.nixos-hardware.nixosModules.gigabyte-b650
];
boot.kernelModules = [ "kvm-intel" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}