Skip to content

Instantly share code, notes, and snippets.

{ pkgs, ... }:
{
fonts.fonts = [
(pkgs.callPackage ./gost-fonts.nix {})
];
}
@katyo
katyo / README.md
Last active January 31, 2023 17:34
Teclast F5 onboard sound support for NixOS

To get onboard sound working on Teclast F5 with ES8336 codec we needs to use Linux kernel patches from SOF Project and the latest sof-firmware (v1.9).

On NixOS modify your configuration.nix like the following:

{ config, pkgs, lib, ... }:
{
 imports = [
@katyo
katyo / git-subtreefy.sh
Last active June 1, 2025 02:24
Script for converting repo with recursive submodules to subtrees automatically
#!/usr/bin/env bash
# Usage:
# $ cd repo
# $ git-subtreefy.sh [subtree|subrepo]
function git_remote_by_url() {
for name in `git remote`; do
if [ "$1" == "`git remote get-url $name`" ]; then
printf $name
return 0