mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-26 17:08:30 +02:00
test aarch64 build
This commit is contained in:
parent
be7adc37de
commit
3dc3a267ab
|
@ -152,6 +152,7 @@
|
||||||
mobile-box-vm = self.nixosConfigurations.mobile-box.config.system.build.vm;
|
mobile-box-vm = self.nixosConfigurations.mobile-box.config.system.build.vm;
|
||||||
mobile-box-disk = self.nixosConfigurations.mobile-box.config.system.build.diskImage;
|
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-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;
|
staging-microvm = self.nixosConfigurations.staging-data-hoarder.config.microvm.declaredRunner;
|
||||||
} // (import ./pkgs/deployment.nix { inherit self pkgs; systems = stop_boxes; });
|
} // (import ./pkgs/deployment.nix { inherit self pkgs; systems = stop_boxes; });
|
||||||
in
|
in
|
||||||
|
@ -225,10 +226,13 @@
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
diskModule
|
diskModule
|
||||||
./hosts/user-stop-box/configuration.nix
|
./hosts/user-stop-box-rpi4/configuration.nix
|
||||||
./hosts/user-stop-box/hardware-configuration.nix
|
./hosts/user-stop-box-rpi4/hardware-configuration.nix
|
||||||
|
./hardware/configuration-rpi-4b.nix
|
||||||
./user-config.nix
|
./user-config.nix
|
||||||
|
./modules/base.nix
|
||||||
./modules/dump-dvb
|
./modules/dump-dvb
|
||||||
|
./modules/user-stop-box/user.nix
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [ radio-conf.overlay."aarch64-linux" decode-server.overlay."aarch64-linux" ];
|
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."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;
|
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-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;
|
sops-binaries."x86_64-linux" = sops-nix.packages."x86_64-linux".sops-install-secrets;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,15 +7,9 @@
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
grub.enable = false;
|
grub.enable = false;
|
||||||
generic-extlinux-compatible.enable = lib.mkDefault true;
|
|
||||||
raspberryPi = {
|
raspberryPi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = 4;
|
version = 4;
|
||||||
uboot.enable = true;
|
|
||||||
firmwareConfig = ''
|
|
||||||
gpu_mem=192
|
|
||||||
dtparam=audio=on
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
@ -23,11 +17,11 @@
|
||||||
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
sdImage = {
|
# sdImage = {
|
||||||
compressImage = false;
|
# compressImage = false;
|
||||||
imageBaseName = config.networking.hostName;
|
# imageBaseName = config.networking.hostName;
|
||||||
firmwareSize = 512;
|
# firmwareSize = 512;
|
||||||
};
|
# };
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
networking.interfaces.eth0.useDHCP = true;
|
||||||
|
|
36
hosts/user-stop-box-rpi4/configuration.nix
Normal file
36
hosts/user-stop-box-rpi4/configuration.nix
Normal 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. It‘s 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?
|
||||||
|
|
||||||
|
}
|
31
hosts/user-stop-box-rpi4/hardware-configuration.nix
Normal file
31
hosts/user-stop-box-rpi4/hardware-configuration.nix
Normal 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 = [ ];
|
||||||
|
}
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "sdhci_acpi" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
|
@ -28,6 +27,4 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user