To use Nix with an ordinary install on the cluster requires access to
/nix
and also sharing /nix
across all compute nodes. This is not
feasible without a great deal of work by the sys admin. There already
exist shared directories that users have access to (/users
and
/working
). /working
is used mostly for building environments and
writes during job runs. There are two ways to install a non-root
Nix. One is to try to install a version of Nix with a built-in
alternative store location and the other is to use chroot and trick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Builder for NixOS configurations defined at the end of the file to be built into KVM VM's | |
{ system ? builtins.currentSystem }: | |
let | |
loadcfg = cfgfile: { config, pkgs, ...}: { | |
imports = [ <nixos/modules/virtualisation/qemu-vm.nix> cfgfile ]; | |
config = { | |
networking.extraHosts = '' | |
176.32.0.254 template | |
''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install arch https://wiki.archlinux.org/title/Chrome_OS_devices/Crostini | |
lxc config set arch security.nesting true | |
Within arch, configure downloads | |
mkdir ~/Downloads && sudo mount -o bind /mnt/chromeos/MyFiles/Downloads ~/Downloads | |
Install nix (just use the standard multi-user nix installer) | |
Install lxd | |
Add user to group lxd | |
sudo systemctl enable lxd.service | |
logout cycle for arch | |
lxd init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib ? null, ... }: | |
let | |
net = { | |
ip = { | |
# add :: (ip | mac | integer) -> ip -> ip | |
# | |
# Examples: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo-features = ["edition"] | |
[package] | |
edition = "2018" | |
name = "wasm-pack-examples" | |
version = "0.1.0" | |
authors = ["573 <me@gmail.com>"] | |
[lib] | |
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
let | |
# To use this shell.nix on NixOS your user needs to be configured as such: | |
# users.extraUsers.adisbladis = { | |
# subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
# subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
# }; |
This documentation is provided solely for education and interoperability purposes (aka persons who are tired of proprietary non-customizable hardware and want to use their own hardware for DIY controllers). It enables neither chip-cloning nor controller counterfeiting which would violate copyright and/or any other applicable laws. This documentation also comes without warranty. Use it at your own risk.
- Model: NXP A710x series, possibly semi-customized (Label says 7105 - A7105 does not exist)
- Protocol: I2C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
""" | |
Cursed Code. | |
This code literally patches your kernel memory, proceed at your own risk. | |
Tested on Ubuntu 17.10 and Arch, x86_64. Should work on other distros, maybe even other architectures! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=mesa-full-tegra | |
pkgver=r100838.c9b153fea7 | |
_realver=18.0 | |
pkgrel=1 | |
pkgdesc="Full Mesa 3D graphics library with all its components, built from the git master branch. Compiles tegra" | |
arch=(armv7h) | |
url="http://mesa3d.org/" | |
license=('LGPL') | |
depends=('libdrm' 'dri2proto' 'glproto' 'libxxf86vm' 'libxdamage' 'expat>=2.0.1' 'libxmu' 'talloc' 'llvm' 'wayland' 'libxvmc' 'python2-mako' 'libxcb') | |
makedepends=('pkgconfig' 'imake' 'xorg-server-devel' 'meson') |
NewerOlder