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

@ -1,12 +1,10 @@
{ ... }:
{
{...}: {
# Enable these imports after collecting disk IDs and generated hardware config
# during the NixOS installer phase.
# imports = [
# ./hardware-configuration.nix
# ./disko.nix
# ];
imports = [
./hardware-configuration.nix
./disko.nix
];
networking.hostName = "midgard";

View file

@ -1,11 +1,8 @@
{ ... }:
{
{...}: {
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/disk/by-id/REPLACE_WITH_MIDGARD_DISK_ID";
device = "/dev/disk/by-id/ata-SSM28128GPTCB3B-S112611_DAAE0797167D10302215";
content = {
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;
}