test aarch64 build

This commit is contained in:
oxapentane - 2022-06-09 21:13:37 +02:00
parent be7adc37de
commit 3dc3a267ab
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
5 changed files with 79 additions and 16 deletions

View File

@ -152,6 +152,7 @@
mobile-box-vm = self.nixosConfigurations.mobile-box.config.system.build.vm;
mobile-box-disk = self.nixosConfigurations.mobile-box.config.system.build.diskImage;
user-stop-box-wyse-3040-image = self.nixosConfigurations.user-stop-box-wyse-3040.config.system.build.diskImage;
user-stop-box-rpi4-image = self.nixosConfigurations.user-stop-box-rpi4.config.system.build.diskImage;
staging-microvm = self.nixosConfigurations.staging-data-hoarder.config.microvm.declaredRunner;
} // (import ./pkgs/deployment.nix { inherit self pkgs; systems = stop_boxes; });
in
@ -225,10 +226,13 @@
specialArgs = { inherit inputs; };
modules = [
diskModule
./hosts/user-stop-box/configuration.nix
./hosts/user-stop-box/hardware-configuration.nix
./hosts/user-stop-box-rpi4/configuration.nix
./hosts/user-stop-box-rpi4/hardware-configuration.nix
./hardware/configuration-rpi-4b.nix
./user-config.nix
./modules/base.nix
./modules/dump-dvb
./modules/user-stop-box/user.nix
{
nixpkgs.overlays = [ radio-conf.overlay."aarch64-linux" decode-server.overlay."aarch64-linux" ];
}
@ -244,6 +248,7 @@
mobile-box."x86_64-linux" = self.nixosConfigurations.mobile-box.config.system.build.toplevel;
mobile-box-disk."x86_64-linux" = self.nixosConfigurations.mobile-box.config.system.build.diskImage;
user-stop-box-wyse-3040-image."x86_64-linux" = self.nixosConfigurations.user-stop-box-wyse-3040.config.system.build.diskImage;
user-stop-box-rpi4-image."aarch64-linux" = self.nixosConfigurations.user-stop-box-rpi4.config.system.build.diskImage;
sops-binaries."x86_64-linux" = sops-nix.packages."x86_64-linux".sops-install-secrets;
};
};

View File

@ -7,15 +7,9 @@
boot = {
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = lib.mkDefault true;
raspberryPi = {
enable = true;
version = 4;
uboot.enable = true;
firmwareConfig = ''
gpu_mem=192
dtparam=audio=on
'';
};
};
kernelPackages = pkgs.linuxPackages_latest;
@ -23,11 +17,11 @@
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
};
sdImage = {
compressImage = false;
imageBaseName = config.networking.hostName;
firmwareSize = 512;
};
# sdImage = {
# compressImage = false;
# imageBaseName = config.networking.hostName;
# firmwareSize = 512;
# };
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;

View File

@ -0,0 +1,36 @@
{ config, pkgs, inputs, ... }:
{
boot.tmpOnTmpfs = true;
hardware.hackrf.enable = true;
hardware.rtl-sdr.enable = true;
networking.hostName = "user-station-box"; # Define your hostname.
# Set your time zone.
time.timeZone = "Europe/Berlin";
documentation.enable = false;
nix = {
buildCores = 1;
gc = {
automatic = true;
dates = "daily";
};
};
services.journald.extraConfig = ''
SystemMaxUse=5M
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}

View File

@ -0,0 +1,31 @@
# 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 + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
swapDevices = [ ];
}

View File

@ -11,7 +11,6 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
@ -28,6 +27,4 @@
};
swapDevices = [ ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}