mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
midgard initial install
This commit is contained in:
parent
a7e8208117
commit
bfbd5a5152
4 changed files with 31 additions and 19 deletions
|
|
@ -619,16 +619,16 @@ nix run github:NixOS/nixpkgs/nixos-25.11#nixos-rebuild -- \
|
||||||
test \
|
test \
|
||||||
--fast \
|
--fast \
|
||||||
--flake .#<host> \
|
--flake .#<host> \
|
||||||
--build-host poby@<host> \
|
--build-host <host> \
|
||||||
--target-host poby@<host> \
|
--target-host <host> \
|
||||||
--use-remote-sudo
|
--use-remote-sudo
|
||||||
|
|
||||||
nix run github:NixOS/nixpkgs/nixos-25.11#nixos-rebuild -- \
|
nix run github:NixOS/nixpkgs/nixos-25.11#nixos-rebuild -- \
|
||||||
switch \
|
switch \
|
||||||
--fast \
|
--fast \
|
||||||
--flake .#<host> \
|
--flake .#<host> \
|
||||||
--build-host poby@<host> \
|
--build-host <host> \
|
||||||
--target-host poby@<host> \
|
--target-host <host> \
|
||||||
--use-remote-sudo
|
--use-remote-sudo
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
|
|
||||||
{
|
|
||||||
# Enable these imports after collecting disk IDs and generated hardware config
|
# Enable these imports after collecting disk IDs and generated hardware config
|
||||||
# during the NixOS installer phase.
|
# during the NixOS installer phase.
|
||||||
# imports = [
|
imports = [
|
||||||
# ./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# ./disko.nix
|
./disko.nix
|
||||||
# ];
|
];
|
||||||
|
|
||||||
networking.hostName = "midgard";
|
networking.hostName = "midgard";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
|
|
||||||
{
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.main = {
|
disk.main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/disk/by-id/REPLACE_WITH_MIDGARD_DISK_ID";
|
device = "/dev/disk/by-id/ata-SSM28128GPTCB3B-S112611_DAAE0797167D10302215";
|
||||||
|
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,22 @@
|
||||||
{ ... }:
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{
|
{
|
||||||
# TODO: Replace with generated midgard hardware configuration.
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc"];
|
||||||
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
||||||
|
boot.kernelModules = ["kvm-amd"];
|
||||||
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue