hardware-configuration.nix as regenerated by nixos-anywhere during the install, replacing the placeholder. The detected initrd modules differ from what the placeholder guessed (ata_piix, uhci_hcd), but the virtio modules pinned in configuration.nix merge in regardless, so root mounts either way. darman_password is rotated because the previous hash's plaintext was not recorded anywhere. Combined with wheelNeedsPassword = true and PermitRootLogin = "no" that left no way to escalate on the box, and recovery needed netcup's rescue system to edit /etc/shadow directly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
557 B
Nix
18 lines
557 B
Nix
# 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.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
}
|