midgard initial install

This commit is contained in:
Poby 2026-05-20 23:30:19 +09:00
parent a7e8208117
commit bfbd5a5152
No known key found for this signature in database
4 changed files with 31 additions and 19 deletions

View file

@ -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 .

View file

@ -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";

View file

@ -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";

View file

@ -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;
} }