changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
before building set Tempdir because of ramdisk size
|
||||
export TMPDIR=/nix/persist/user/dominik/tmp/build-sdcard
|
||||
export TMPDIR=/nix/persist/home/dominik/tmp/build-sdcard
|
||||
|
||||
# Raspberry Pi Multiroom audio client
|
||||
- change hostname in sd-card.nix
|
||||
@@ -10,3 +10,4 @@ export TMPDIR=/nix/persist/user/dominik/tmp/build-sdcard
|
||||
- change hostname in sd-card-zero.nix
|
||||
- add wifi psk
|
||||
- nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage -I nixos-config=./sd-card-zero.nix --argstr system aarch64-linux
|
||||
|
||||
|
||||
1
raspberry/buildroot
Submodule
1
raspberry/buildroot
Submodule
Submodule raspberry/buildroot added at b98062f730
@@ -7,6 +7,11 @@
|
||||
let
|
||||
hostName = "music-bedroom";
|
||||
snapserverHost = "snapcast.cloonar.com";
|
||||
# customNixpkgs = fetchTarball {
|
||||
# url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/23.11.tar.gz";
|
||||
# sha256 = "sha256:1ndiv385w1qyb3b18vw13991fzb9wg4cl21wglk89grsfsnra41k";
|
||||
# };
|
||||
# pkgs = import customNixpkgs {};
|
||||
in
|
||||
{
|
||||
nixpkgs.hostPlatform.system = "aarch64-linux";
|
||||
@@ -39,7 +44,7 @@ in
|
||||
};
|
||||
networking.firewall.logRefusedConnections = false;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_rpi3;
|
||||
# boot.kernelPackages = pkgs.linuxPackages_rpi3;
|
||||
# hardware.deviceTree.enable = true;
|
||||
# hardware.deviceTree.overlays = [ {
|
||||
# name = "hifiberry-dacplus";
|
||||
@@ -47,10 +52,46 @@ in
|
||||
# } ];
|
||||
|
||||
hardware.deviceTree.filter = "bcm2708-rpi-zero*.dtb"; # This line does not change anything in this case
|
||||
hardware.deviceTree.enable = true;
|
||||
hardware.deviceTree.overlays = [
|
||||
{
|
||||
name = "hifiberry-dacplusadc";
|
||||
dtboFile = "${pkgs.device-tree_rpi.overlays}/hifiberry-dacplus.dtbo";
|
||||
# dtsText = ''
|
||||
# /dts-v1/;
|
||||
# /plugin/;
|
||||
#
|
||||
# / {
|
||||
# compatible = "brcm,bcm2835";
|
||||
#
|
||||
# fragment@0 {
|
||||
# target = <&i2s>;
|
||||
# __overlay__ {
|
||||
# status = "okay";
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# fragment@1 {
|
||||
# target-path = "/";
|
||||
# __overlay__ {
|
||||
# dacplus_codec: dacplus-codec {
|
||||
# #sound-dai-cells = <0>;
|
||||
# compatible = "hifiberry,hifiberry-dacplus";
|
||||
# status = "okay";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# fragment@2 {
|
||||
# target = <&sound>;
|
||||
# __overlay__ {
|
||||
# compatible = "hifiberry,hifiberry-dacplus";
|
||||
# i2s-controller = <&i2s>;
|
||||
# status = "okay";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# '';
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
19
raspberry/shell.nix
Normal file
19
raspberry/shell.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
gnumake
|
||||
ncurses
|
||||
pkg-config
|
||||
flex
|
||||
bison
|
||||
openssl
|
||||
bc
|
||||
which
|
||||
file
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export KCONFIG_CONFIG=.config
|
||||
'';
|
||||
}
|
||||
1
raspberry/snapos
Submodule
1
raspberry/snapos
Submodule
Submodule raspberry/snapos added at 29a5daebb0
Reference in New Issue
Block a user