mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
refactor: simplify hardware config filename
This commit is contained in:
27
README.md
27
README.md
@ -19,16 +19,17 @@
|
|||||||
- [Pain](#spent-weeks-on-this-system-configuration-)
|
- [Pain](#spent-weeks-on-this-system-configuration-)
|
||||||
|
|
||||||
## Hosts
|
## Hosts
|
||||||
| | Type | Name | Hardware | Purpose
|
|
||||||
---|---|---|---|---
|
| | 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.
|
| 💻 | Desktop | sirius | Ryzen 5 3600 - 64GB RAM - RTX 3080 TI | Multi-monitor desktop running Windows Subsystem for Linux. |
|
||||||
☁️ | VPS | arcturus | 4 Core - 8 GB RAM | Primary server responsible for exposing my homelab applications to the internet.
|
| 🖥️ | Laptop | canopus | Ryzen 9 5900HS - 16 GB RAM - RTX 3060 | Optimized for productivity on the go and some gaming. |
|
||||||
🥔 | VPS | alpha | 2 Core - 4 GB RAM | Monitors uptime and health status of all services across the infrastructure.
|
| ☁️ | VPS | arcturus | 4 Core - 8 GB RAM | Primary server responsible for exposing my homelab applications to the internet. |
|
||||||
🥔 | Server | vega | Cortex A53 - 1 GB RAM | Running AdGuard Home for network-wide ad blocking.
|
| 🥔 | VPS | alpha | 2 Core - 4 GB RAM | Monitors uptime and health status of all services across the infrastructure. |
|
||||||
☁️ | VPS | capella | 4 Core - 6 GB RAM | For running Minecraft, CS 2, Rust game servers.
|
| 🥔 | Server | vega | Cortex A53 - 1 GB RAM | Running AdGuard Home for network-wide ad blocking. |
|
||||||
🖥️ | Server | homelab | Ryzen 7 2700X - 32 GB RAM - 2060 Super | WIP, Migrating from unraid.
|
| ☁️ | VPS | capella | 4 Core - 6 GB RAM | For running Minecraft, CS 2, Rust game servers. |
|
||||||
☁️ | VPS | node | i9-13900 - 64 GB RAM | Running Ethereum and BSC nodes. Currently in the process of migrating from Ubuntu.
|
| 🖥️ | 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
|
## Installation
|
||||||
|
|
||||||
@ -47,11 +48,11 @@ nix-shell -p disko
|
|||||||
# Partition the disk and make sure to replace DISK_PATH (eg. /dev/vda)
|
# Partition the disk and make sure to replace DISK_PATH (eg. /dev/vda)
|
||||||
disko --mode disko ./hosts/canopus/disko.nix --arg device '"DISK_PATH"'
|
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
|
nixos-generate-config --no-filesystems --root /mnt
|
||||||
|
|
||||||
# Replace the hardware-configuration.nix with generated one
|
# Replace the hardware.nix with generated one
|
||||||
cp /mnt/etc/nixos/hardware-configuration.nix ./hosts/canopus/
|
cp /mnt/etc/nixos/hardware-configuration.nix ./hosts/canopus/hardware.nix
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
nixos-install --root /mnt --flake .#canopus
|
nixos-install --root /mnt --flake .#canopus
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
../common
|
../common
|
||||||
../../modules/nixos/uptime-kuma.nix
|
../../modules/nixos/uptime-kuma.nix
|
||||||
];
|
];
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
inputs.disko.nixosModules.default
|
inputs.disko.nixosModules.default
|
||||||
|
|
||||||
(import ./disko.nix {device = "/dev/nvme0n1";})
|
(import ./disko.nix {device = "/dev/nvme0n1";})
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
|
|
||||||
../common
|
../common
|
||||||
../../modules/nixos/desktop
|
../../modules/nixos/desktop
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
inputs.disko.nixosModules.default
|
inputs.disko.nixosModules.default
|
||||||
|
|
||||||
(import ./disko.nix {device = "/dev/nvme0n1";})
|
(import ./disko.nix {device = "/dev/nvme0n1";})
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
|
|
||||||
../common
|
../common
|
||||||
../../modules/nixos/desktop
|
../../modules/nixos/desktop
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware.nix
|
||||||
../common
|
../common
|
||||||
|
|
||||||
../../modules/nixos/adguard.nix
|
../../modules/nixos/adguard.nix
|
||||||
|
Reference in New Issue
Block a user