mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
move nixos module from rpi to nixosModules.raspberry-pi
This commit is contained in:
parent
40e66f1d81
commit
b882977647
2 changed files with 23 additions and 6 deletions
27
README.md
27
README.md
|
|
@ -23,10 +23,8 @@ and `rpi/config.nix`. The other modules are mostly wrappers that set
|
|||
{
|
||||
description = "raspberry-pi-nix example";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
|
||||
raspberry-pi-nix = {
|
||||
url = "github:tstat/raspberry-pi-nix";
|
||||
};
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
raspberry-pi-nix = "github:tstat/raspberry-pi-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, raspberry-pi-nix }:
|
||||
|
|
@ -40,12 +38,31 @@ and `rpi/config.nix`. The other modules are mostly wrappers that set
|
|||
useDHCP = false;
|
||||
interfaces = { wlan0.useDHCP = true; };
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ bluez bluez-tools ];
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
rpi-example = nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [ raspberry-pi-nix.rpi basic-config ];
|
||||
modules = [ raspberry-pi-nix.nixosModules.raspberry-pi basic-config ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue