Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@573
573 / readme.md
Last active May 2, 2024 14:10
nix tip: github action to flake update
@573
573 / readme.md
Created April 27, 2024 21:24
pipewire patchbay for audio devices linux
  • recommended app: qpwgraph
  • can reset wrongly connected nodes easily
@573
573 / readme.md
Created April 27, 2024 21:21
linux tip: no sound with head phones headphone fix
  • pipewire but others should apply too
  • pavucontrol for adjusting volume:
    • one of the built-in audio off
  • the other: on "analog stereo duplex" or "analog stereo output"
@573
573 / readme.md
Created April 27, 2024 21:14
screen cast tip: nixGL -- nix run gpu-screen-recorder

probably needs nix shell h265 to run it in

@573
573 / readme.md
Last active May 2, 2024 09:38
nix tip: boot raspberry 2 with u-boot and two sd cards
  • burn two sd cards with latest image
  • the one to be used in internal slot has to have at least u-boot
  • put the latter into the pi
  • put the other in a card reader connected via usb to pi
  • connect keyboard and monitor
  • power on pi
  • try help fatls
  • fatls usb 0:1
  • try printenv
  • run bootcmd_usb0
@573
573 / getting-started-with-nix.md
Created April 25, 2024 07:15 — forked from thiloho/getting-started-with-nix.md
Getting started with the Nix ecosystem

A snowflake through a magnifying glass

Getting started with the Nix ecosystem

What is this article about?

When I first started to learn how to use NixOS, the Nix package manager, and how to work with the Nix language, I was overwhelmed. While it did not take me too long to (sort of) get into it, it was not the most pleasant experience. I would say that there is not really a single source of truth, like Arch Linux users have with the ArchWiki, where you can basically look up everything. Instead, the information is spread across many different sources, which can make it difficult for beginners to find out how to do what they want to do.

The "modern nix CLI", also known as "nix3 cli", is another thing that can cause confusion when you are just starting your nix journey. There are some commands that look almost exactly the same, such as nix shell compared to nix-shell or nix-build compa

@573
573 / readme.md
Created April 22, 2024 15:58
nix tip: becoming maintainer template

i. e. (PR, howto test PR, upstream maintainer hint and code occurrences):

tl;dr replace meson test --print-errorlogs server regression/nix-ast-dump by meson test --print-errorlogs unit/libnixf/Basic unit/libnixf/Parse unit/libnixt in the PR state back then.

@573
573 / readme.md
Created April 20, 2024 19:05
nix tip: nixgl in nix run
$ nix run github:guibou/nixGL#nixGLIntel -- nix shell .#deltatouch
@573
573 / readme.md
Created April 16, 2024 17:51
shell tip: tr collections

i. e. tr ':' '\n' <<< $PATH

@573
573 / readme.md
Created April 16, 2024 08:30
nixos tip: using profiles to dis-/enable features