temporary fix for recursion, remove duplicate hostname in main config

This commit is contained in:
Vinzenz Schroeter 2023-09-09 19:22:11 +02:00
parent d2f8f28143
commit 00c2c2afef
9 changed files with 37 additions and 58 deletions

View file

@ -1,13 +1,16 @@
{
hostName: {
modulesPath,
lib,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(builtins.toString ./. + "/${hostName}.nix")
];
config = {
networking.hostName = hostName;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View file

@ -1,12 +1,4 @@
{
lib,
config,
...
}: {
imports = [
./common.nix
];
{...}: {
config = {
boot = {
initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
@ -33,6 +25,6 @@
{device = "/dev/disk/by-uuid/f5932f70-60e4-4abe-b23d-2cab3c095c7d";}
];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode = true;
};
}

View file

@ -1,12 +1,4 @@
{
lib,
config,
...
}: {
imports = [
./common.nix
];
{...}: {
config = {
boot = {
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"]; # "usb_storage"
@ -57,5 +49,5 @@
swapDevices = [];
};
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode = true;
}