Skip to content

Instantly share code, notes, and snippets.

@Roger
Roger / flake.nix
Created July 18, 2023 20:00
Flake to build nixos for raspberrypi 2 armv7l
{
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
outputs = { self, nixpkgs }:
let rpiOverlays = [
(final: super: {
# Allow missing modules because the master module list is based on strings and the rpi kernel
# is missing some
# https://github.com/NixOS/nixpkgs/issues/154163
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
@Roger
Roger / config.nix.diff
Created September 7, 2023 08:42
fix mic's priority
diff --git a/configuration.nix b/configuration.nix
index fdd9a99..9475b5c 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -22,6 +22,18 @@ let
fi
'';
lib = pkgs.lib;
+
+ # the default priorities put the internal mic above headphones one