feat: readd mellinoe to flake
This commit is contained in:
parent
a753ffeec1
commit
1dafd618e2
7 changed files with 28 additions and 17 deletions
|
@ -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;
|
|
||||||
}
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -38,7 +38,7 @@
|
||||||
case "$1" in
|
case "$1" in
|
||||||
all)
|
all)
|
||||||
# Create a list of hostnames to rebuild
|
# Create a list of hostnames to rebuild
|
||||||
hosts=("nemesis" "apollo")
|
hosts=("nemesis" "apollo" "mellinoe")
|
||||||
|
|
||||||
# Use parallel to rebuild each host
|
# Use parallel to rebuild each host
|
||||||
, parallel rebuild ::: "''${hosts[@]}"
|
, parallel rebuild ::: "''${hosts[@]}"
|
||||||
|
@ -52,6 +52,9 @@
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
echo "=========================="
|
||||||
|
echo "=== Rebuilding $1 ==="
|
||||||
|
echo "=========================="
|
||||||
rebuild_remote "$1"
|
rebuild_remote "$1"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Set default values
|
# Set default values
|
||||||
flake=".#default" # Default flake attribute if none is provided
|
flake="" # Default flake attribute if none is provided
|
||||||
target_host="nixos@<hostname>" # Default target host
|
target_host="" # Default target host
|
||||||
|
|
||||||
# Process command-line arguments
|
# Process command-line arguments
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
(mkSystem "graphical" "nemesis"
|
(mkSystem "graphical" "nemesis"
|
||||||
"nvme-nvme.c0a9-323332354536453737343334-435432303030503353534438-00000001"
|
"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")
|
(mkSystem "headless" "apollo" "/dev/disk/by-id/nvme-eui.002538d221b47b01")
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../configs/bootloaders/systemd-boot.nix
|
../configs/bootloaders/systemd-boot.nix
|
||||||
../configs/filesystems/impermanence.nix
|
../configs/filesystems/impermanence.nix
|
||||||
../configs/hardware/cpu_intel.nix
|
|
||||||
../configs/services.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
17
hosts/mellinoe.nix
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue