Archived
Zero W20 (repeated attribute keys), W10 (empty { ... }: variadic
pattern, use _: instead), and W04 (a = x.a instead of inherit)
warnings remain anywhere in the tree, and nixpkgs-fmt --check is
clean on all 46 .nix files.
Repeated-key merges go as deep as statix actually flags per file
(e.g. boot.loader.* nested under boot.loader = { ... } once the
outer boot.* merge exposed it as its own repeat) — every merge is a
pure attribute-path restructuring with no value changes, verified by
comparing config.system.build.toplevel.drvPath before/after for a
representative host per changed module plus a full 19-host + 4-package
eval sweep.
One indentation slip caught and fixed during this pass: nesting
modules/installer/common.nix's environment.etc."auto-install.sh".text
under an environment = { ... } block initially normalized the
script's shebang/set line indentation, which actually changes the
rendered file (Nix's '' string dedent treats it as real content, not
cosmetic whitespace) — reproduced the original's exact indentation
and reverified the rendered script is byte-identical to before.
modules/services/zfs/auto-mount-volumes.nix picked up formatting too;
worth noting it isn't imported by anything in this flake at all.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01La55Nsss8jZ7ZuzUV9mfot
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
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 = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
||
initrd.kernelModules = [ ];
|
||
kernelModules = [ ];
|
||
extraModulePackages = [ ];
|
||
|
||
# Enable LISH
|
||
kernelParams = [ "console=ttyS0,19200n8" ];
|
||
|
||
loader = {
|
||
grub = {
|
||
device = "/dev/sda";
|
||
extraConfig = ''
|
||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
||
terminal_input serial;
|
||
terminal_output serial;
|
||
'';
|
||
forceInstall = true;
|
||
# device = "nodev";
|
||
};
|
||
timeout = 10;
|
||
};
|
||
};
|
||
|
||
fileSystems."/" =
|
||
{
|
||
device = "/dev/sda";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices =
|
||
[{ device = "/dev/sdb"; }];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
}
|