mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
This focuses on being able to build a SD card image for a Pi 3 named raspberry and the cofig it contains. As part of making that happen, I found that I had totally messed up hetznix02's hardware config. I fixed this as it is where I am builiding the SD image. This work also resulted in adding a "volume" to hetznix02 and moving `/nix` onto it.
46 lines
1.4 KiB
Nix
46 lines
1.4 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.
|
||
{ lib, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||
];
|
||
|
||
boot = {
|
||
initrd = {
|
||
availableKernelModules = [ "xhci_pci" "virtio_scsi" "sr_mod" ];
|
||
kernelModules = [ ];
|
||
};
|
||
kernelModules = [ ];
|
||
extraModulePackages = [ ];
|
||
};
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-partlabel/disk-primary-root";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-partlabel/disk-primary-ESP";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "/dev/disk/by-partlabel/disk-volume1-nix";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||
}
|