Skip to content

Instantly share code, notes, and snippets.

{ config, pkgs, lib, ... }:
{
imports = [
./nixpkgs/nixos/modules/profiles/minimal.nix
./nixpkgs/nixos/modules/profiles/qemu-guest.nix
];
# Cross compiling setup
nixpkgs.localSystem = lib.systems.examples.gnu64;
nixpkgs.crossSystem = lib.systems.examples.riscv64;
@rastertail
rastertail / shell.nix
Created December 17, 2020 21:52
Brickadia NixOS FHS environment
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "brickadia-env";
targetPkgs = pkgs: (with pkgs; [udev alsaLib xorg.libICE xorg.libXi xorg.libXScrnSaver xorg.libXcursor xorg.libXinerama xorg.libXext xorg.libXrandr xorg.libXxf86vm libGL zlib kerberos glib]);
runScript = "bash";
}).env
@rastertail
rastertail / process.sh
Last active February 7, 2022 22:02
Chiptune Cafe Jam Entry Normalization Script
#!/bin/bash
export SHELL=$(type -p bash)
# Requires bash, jq, ffmpeg, GNU Parallel, and tagutil
# Must have data.json exported from Wuhu in the same directory as the exported entries!
process() {
# Modify these parameters as you see fit
loudnorm="I=-14:TP=-1:LRA=20:dual_mono=true:linear=true"
ff_params="-r 48k"
==> Using [aur] repository
-> sway-git: (none) -> r4818.183a4b0d-1
wlroots-git: 0.2.r41.gef9506b0-1 is newer than r3030.73423c98-1
==> Retrieving package files
From https://aur.archlinux.org/sway-git
= [up to date] master -> origin/master
/tmp/view.Y8PHtrFA/sway-git
/tmp/view.Y8PHtrFA/sway-git/sway
/tmp/view.Y8PHtrFA/sway-git/PKGBUILD
/tmp/view.Y8PHtrFA/sway-git/sway-git-r4818.183a4b0d-1-x86_64-pkgver.log
@rastertail
rastertail / add.sh
Created December 13, 2018 00:36
aur-chroot bind debug
#!/bin/bash
aur sync \
--no-view \
--no-confirm \
-c \
--makepkg-conf=/etc/makepkg.conf \
-d aur \
"$@"