Skip to content

Instantly share code, notes, and snippets.

@AcouBass
AcouBass / default.nix
Last active November 25, 2017 16:55
OpenRCT2 nix
{ stdenv, fetchFromGitHub, mesa, libX11, SDL2, SDL2_ttf, curl, cmake, jansson, speexdsp, openssl, libpng12, fontconfig, libzip, pkgconfig, glew }:
stdenv.mkDerivation rec {
version = "0.1.1";
name = "OpenRCT2-${version}";
src = fetchFromGitHub {
owner = "OpenRCT2";
repo = "OpenRCT2";
rev = "46012651c531e9d5b5202b9521ced8126e30ce8f";
sha256 = "1xxwqx2gzvsdrsy76rz3sys9m4pyn9q25nbnkba3cw1z4l2b73lg";
@AcouBass
AcouBass / default.nix
Last active January 17, 2018 13:33
runescape .nix - no longer needs curl-compat!
{ pkgs ? import <nixpkgs> {} }:
let
env = pkgs.buildEnv {
name = "runscape-env";
paths = with pkgs; [
/* required by launcher executable */
xorg.libSM xorg.libXxf86vm libpng12 xorg.libX11 expat.out
webkitgtk glib.out pango.out cairo.out gdk_pixbuf gtk2.out
stdenv.cc.cc.lib glib_networking.out curl.out
@AcouBass
AcouBass / default.nix
Last active May 12, 2018 02:24
Tuxguitar 1.5.1 nixpkg
{ stdenv, fetchurl, swt, libXtst, jdk, fluidsynth, makeWrapper, alsaLib, jre, makeDesktopItem }:
with stdenv.lib;
let metadata = assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
if stdenv.system == "i686-linux" then
{ arch = "x86"; sha256 = "1qmb51k0538pn7gv4nsvhfv33xik4l4af0qmpllkzrikmj8wvzlb"; }
else
{ arch = "x86_64"; sha256 = "19d8srzki57yywin5nipibq7kkwf65k3ngk6kzqa57ska22rqhfj"; };
in stdenv.mkDerivation rec {
@AcouBass
AcouBass / 20-intel.conf
Last active June 12, 2018 23:58
GPD configs
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
Option "SwapbuffersWait" "true"
Option "AccelMethod" "sna"
EndSection
Feb 15 18:26:33 Sailfish systemd[1]: dev-crypto_luks_6593cf98-82e3-49fb-8ad0-57354400a7e9.device: Job dev-crypto_luks_6593cf98-82e3-49fb-8ad0-57354400a7e9.device/start timed out.
Feb 15 18:26:33 Sailfish systemd[1]: Timed out waiting for device dev-crypto_luks_6593cf98-82e3-49fb-8ad0-57354400a7e9.device.
-- Subject: Unit dev-crypto_luks_6593cf98-82e3-49fb-8ad0-57354400a7e9.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dev-crypto_luks_6593cf98-82e3-49fb-8ad0-57354400a7e9.device has failed.
--
-- The result is timeout.
Feb 15 18:26:33 Sailfish systemd[1]: Dependency failed for Open DM-Crypt LUKS on SD-card crypto_luks_6593cf98/82e3/49fb/8ad0/57354400a7e9.
#!/usr/bin/env bash
# This script requires Ruby, ROTP (Rubygems), totp (https://github.com/hobarrera/totp-cli), pass (http://passwordstore.org) and dmenu (suckless).
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi
## This is now dynamic, hahahahahahaha.
PASSLIST=(`ls $HOME/.password-store/2fa/`)
Disk /dev/sdc: 31.24 GiB, 33533460480 bytes, 65495040 sectors
Disk model: STORAGE DEVICE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2178694e
Device Boot Start End Sectors Size Id Type
/dev/sdc1 16384 262143 245760 120M b W95 FAT32
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 418.56
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 415.25
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
@-moz-document url-prefix(about:home), url-prefix(about:newtab), url-prefix(about:blank) {
body {
background-color: #171717 !important;
}
}
/* dark blank tab */
u/-moz-document url(about:blank), url(about:newtab) {
#newtab-window, html:not(#ublock0-epicker) {
background: #222 !important;
}
@AcouBass
AcouBass / configuration.nix
Last active December 17, 2021 16:33
NixOS configuration for my laptop
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports =