I did PCI passthrough on Archlinux and Debian with the old PCI-stub method (this was pre-4.0 era). And later I did PCI passthrough on the 4.1+ kernels on Arch and Ubuntu (16.10 I think?).
This is my attempt at doing the same on Nixos.
#!/bin/sh | |
set -x | |
DEVICE=/dev/vda | |
SWAP_SIZE=2GiB | |
URI=github:kanashimia/nixos/module-refactor#personal-server | |
TYPE=legacy | |
trap "swapoff $DEVICE; umount /mnt/boot; umount /mnt; exit" INT |
#!/usr/bin/env sh | |
# ____ _ _ | |
#| __ ) _ _| |_| |_ __ _ _ __ ___ | |
#| _ \| | | | __| __/ _` | '__/ __| | |
#| |_) | |_| | |_| || (_| | | \__ \ | |
#|____/ \__,_|\__|\__\__,_|_| |___/ | |
# _ _ | |
# / \ _ __ ___| |__ |
I did PCI passthrough on Archlinux and Debian with the old PCI-stub method (this was pre-4.0 era). And later I did PCI passthrough on the 4.1+ kernels on Arch and Ubuntu (16.10 I think?).
This is my attempt at doing the same on Nixos.
Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.
These steps may not be required if NixOS/nix#2374 is resolved.
These commands are required for both Fedora Workstation and Fedora Silverblue
# This setup works pretty well for OPL with a network link that travels through | |
# two UniFi switches and connects to a Samba server running inside Docker. The | |
# host OS is Debian with a ZFS filesystem and the container OS is also Debian. | |
# Latest Samba (4.11+). | |
[global] | |
# ====================== | |
# General Samba settings | |
# ====================== | |
log level = 1 |
# create a USB installer | |
# https://support.apple.com/en-au/HT201372 | |
Download the OS X High Sierra installer via the App Store, it will be installed into the /Applications directory | |
If it opens automatically, close it | |
Insert a USB stick (8GB+) | |
Run the following command where MyVolume is the name of the USB volume: | |
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume | |
# boot the USB installer |
#!/bin/sh | |
# A script to fade volume when toggling MPD via mpc | |
mpc=`which mpc` | |
SINKAPP="mpd" | |
SECS=2.0 | |
sinks=$(pactl list sink-inputs) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html