initial install yggdrasil

This commit is contained in:
Poby 2026-05-20 23:04:42 +09:00
parent 5b3f78c854
commit b538626c12
No known key found for this signature in database
7 changed files with 186 additions and 72 deletions

View file

@ -1,14 +1,16 @@
{ ... }:
{
# 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 = "yggdrasil";
services.logind.settings.Login = {
HandleLidSwitch = "ignore";
HandleLidSwitchExternalPower = "ignore";
HandleLidSwitchDocked = "ignore";
};
system.stateVersion = "25.11";
}

View file

@ -1,10 +1,8 @@
{ ... }:
{
{...}: {
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/disk/by-id/REPLACE_WITH_YGGDRASIL_DISK_ID";
device = "/dev/disk/by-id/ata-SAMSUNG_MZNLN128HCGR-000_S200NYAG700346";
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 yggdrasil hardware configuration.
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" "rtsx_usb_sdmmc"];
boot.initrd.kernelModules = ["dm-snapshot"];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}