mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
initial install yggdrasil
This commit is contained in:
parent
5b3f78c854
commit
b538626c12
7 changed files with 186 additions and 72 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue