Git Product home page Git Product logo

raspberry-pi-nix's People

Contributors

rcmast3r avatar tstat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

raspberry-pi-nix's Issues

Cachix isn't used when building the template configuration

Hello! Just came across your project and I wanted to thank you for your nice work.

So, I've been trying to use it in the config of my RPi3B, but upon building I realised the cachix instance didn't provide the kernel package (6.1.63), which made the build quite endless.

I tried again building the default configuration provided in the readme, alone, and the exact same thing happened. Can someone confirm that the cache does or doesn't work?

Thanks

RPI doesnt boot nixos when Serial hat is on

Hello ive tried to use your module to fix this error on Raspberry 3b, but it doesnt help.
rsz_rpi-image
Do you have any advice why nixos get stuck on a jumbled boot screen when i connect this hat https://abelectronics.co.uk/p/77/rs485-pi but works fine without? I need to read data from /dev/serial device but have been unsuccessful using Nixos. This serial interface hat works out of the box with RaspberianOS though.

This is my config, i basically just cloned your rpi-example and flashed the sd-image with dd.

{inputs, ...}: {
  imports = [inputs.raspberry-pi-nix.nixosModules.raspberry-pi];
  nix.settings = {
    substituters = ["https://raspberry-pi-nix.cachix.org"];
    trusted-public-keys = ["raspberry-pi-nix.cachix.org-1:WmV2rdSangxW0rZjY/tBvBDSaNFQ3DyEQsVw8EvHn9o="];
  };
  hardware = {
    bluetooth.enable = false;
    raspberry-pi.config = {
      all = {
        options = {
          # ive tried a bunch of options here
        };
      };
    };
  };
}

Help much appreciated, thanks.

Edit: seems like just creating loopback with RX and TX on the GPIO results in the same error

narHash for two inputs is wrong

I'm seeing two incorrect narHashes in your flake.lock. I had to work around this by manually "updating" each input back to the same revision. In both cases the lastModified and rev stayed the same, but the narHash changed. This was with Nix 2.13.3.

  • rpi-firmware-stable-src - the hash I see is sha256-00XrEDj2n3627MJ75waI3M0t40MFevFgGOnpHjjP0dQ=
  • rpi-linux-5_15-src - the hash I see is sha256-/5UStX6DUxWQ2WFWvB5u1TszLUzCo+b/qiBVetEkBTE=

I have no explanation for why the hashes are wrong, unless github actually changed the archive file it returns for the locked revisions (which would be a rather big surprise).

Update for Linux 6.1 kernel

Is it easy to update this for the Linux 6.1 kernel? NixOS 23.05 switched to that as the default, and the upstream raspberrypi/linux repo now defaults to the rpi-6.1.y branch.

License

Have you considered adding a license to this project?
I would love to use this in a project, but I am unable due to the lack of a license.

As per the GitHub FAQ:

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Bluetooth is missing

I finally managed to build my existing configuration using raspberry-pi-nix instead of nixos-hardware and deploy it to my raspberry pi, and rebooted, and now bluetooth is gone. bluetoothctl says no default controller available and rfkill doesn't list bluetooth.

My configuration uses the following, which AIUI should be sufficient:

{
  hardware = {
    bluetooth.enable = true;
    raspberry-pi = {
      config.all.base-dt-params = {
        # enable autoprobing of bluetooth driver
        # https://github.com/raspberrypi/linux/blob/c8c99191e1419062ac8b668956d19e788865912a/arch/arm/boot/dts/overlays/README#L222-L224
        krnbt = {
          enable = true;
          value = "on";
        };
      };
    };
  };
}

I really don't know very much about the Linux booting process, is there any way to confirm that it is indeed booting through the correct process?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.