refactor: simplify hardware config filename

This commit is contained in:
tux
2025-01-05 02:21:18 +05:30
parent 807f8ab442
commit 1d32904ff5
9 changed files with 18 additions and 17 deletions

View File

@ -19,16 +19,17 @@
- [Pain](#spent-weeks-on-this-system-configuration-)
## Hosts
| | Type | Name | Hardware | Purpose
---|---|---|---|---
💻 | Desktop | sirius | Ryzen 5 3600 - 64GB RAM - RTX 3080 TI | Multi-monitor desktop running Windows Subsystem for Linux.
🖥️ | Laptop | canopus | Ryzen 9 5900HS - 16 GB RAM - RTX 3060 | Optimized for productivity on the go and some gaming.
☁️ | VPS | arcturus | 4 Core - 8 GB RAM | Primary server responsible for exposing my homelab applications to the internet.
🥔 | VPS | alpha | 2 Core - 4 GB RAM | Monitors uptime and health status of all services across the infrastructure.
🥔 | Server | vega | Cortex A53 - 1 GB RAM | Running AdGuard Home for network-wide ad blocking.
☁️ | VPS | capella | 4 Core - 6 GB RAM | For running Minecraft, CS 2, Rust game servers.
🖥️ | Server | homelab | Ryzen 7 2700X - 32 GB RAM - 2060 Super | WIP, Migrating from unraid.
☁️ | VPS | node | i9-13900 - 64 GB RAM | Running Ethereum and BSC nodes. Currently in the process of migrating from Ubuntu.
| | Type | Name | Hardware | Purpose |
| --- | ------- | -------- | -------------------------------------- | ---------------------------------------------------------------------------------- |
| 💻 | Desktop | sirius | Ryzen 5 3600 - 64GB RAM - RTX 3080 TI | Multi-monitor desktop running Windows Subsystem for Linux. |
| 🖥️ | Laptop | canopus | Ryzen 9 5900HS - 16 GB RAM - RTX 3060 | Optimized for productivity on the go and some gaming. |
| ☁️ | VPS | arcturus | 4 Core - 8 GB RAM | Primary server responsible for exposing my homelab applications to the internet. |
| 🥔 | VPS | alpha | 2 Core - 4 GB RAM | Monitors uptime and health status of all services across the infrastructure. |
| 🥔 | Server | vega | Cortex A53 - 1 GB RAM | Running AdGuard Home for network-wide ad blocking. |
| ☁️ | VPS | capella | 4 Core - 6 GB RAM | For running Minecraft, CS 2, Rust game servers. |
| 🖥️ | Server | homelab | Ryzen 7 2700X - 32 GB RAM - 2060 Super | WIP, Migrating from unraid. |
| ☁️ | VPS | node | i9-13900 - 64 GB RAM | Running Ethereum and BSC nodes. Currently in the process of migrating from Ubuntu. |
## Installation
@ -47,11 +48,11 @@ nix-shell -p disko
# Partition the disk and make sure to replace DISK_PATH (eg. /dev/vda)
disko --mode disko ./hosts/canopus/disko.nix --arg device '"DISK_PATH"'
# Generate the hardware-configuration.nix file for your system
# Generate the hardware.nix file for your system
nixos-generate-config --no-filesystems --root /mnt
# Replace the hardware-configuration.nix with generated one
cp /mnt/etc/nixos/hardware-configuration.nix ./hosts/canopus/
# Replace the hardware.nix with generated one
cp /mnt/etc/nixos/hardware-configuration.nix ./hosts/canopus/hardware.nix
# Install
nixos-install --root /mnt --flake .#canopus

View File

@ -6,7 +6,7 @@
...
}: {
imports = [
./hardware-configuration.nix
./hardware.nix
../common
../../modules/nixos/uptime-kuma.nix
];

View File

@ -11,7 +11,7 @@
inputs.disko.nixosModules.default
(import ./disko.nix {device = "/dev/nvme0n1";})
./hardware-configuration.nix
./hardware.nix
../common
../../modules/nixos/desktop

View File

@ -9,7 +9,7 @@
inputs.disko.nixosModules.default
(import ./disko.nix {device = "/dev/nvme0n1";})
./hardware-configuration.nix
./hardware.nix
../common
../../modules/nixos/desktop

View File

@ -4,7 +4,7 @@
...
}: {
imports = [
./hardware-configuration.nix
./hardware.nix
../common
../../modules/nixos/adguard.nix