Skip to content

Instantly share code, notes, and snippets.

with import <nixpkgs> {};
let
junitFuck = junit.overrideDerivation (drv: {
postPatch = (drv.postPatch or "") + ''
sed -i -e '/InaccessibleBaseClassTest/d' \
src/test/java/org/junit/tests/AllTests.java
'';
});
item_fields:
has_albums: |
import gc
from beets import library
from beetsplug.convert import _fs_lock # Abuse the lock for our purpose
with _fs_lock:
if not hasattr(library, '_artists_with_albums'):
libs = [l for l in gc.get_objects()
if isinstance(l, library.Library)]
@aszlig
aszlig / module.nix
Last active April 12, 2024 19:45
Passing secrets to NixOS containers without exposing them world-readable
{ pkgs, lib, config, ... }:
let
inherit (lib) mkOption types;
secretsModule = {
options.path = mkOption {
type = types.path;
example = lib.literalExample "pkgs.hello";
description = ''