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
git clone https://github.com/zfsonlinux/zfs | |
cd zfs | |
git remote add aither https://github.com/aither64/zfs/ | |
git remote add mic https://github.com/Mic92/zfs/ | |
git checkout nixos-zfs-2017-09-12 | |
git show | |
git checkout uid_offset | |
git cherry-pick 3a504aa46962295f14f374ca839689bfb57ce8b8 | |
git push srk .. |
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
nixpkgs.config = { | |
packageOverrides = self: rec { | |
spl = spl.overrideAttrs (old: { broken = false; }); | |
}; | |
}; |
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
packageOverrides = super: let self = super.pkgs; in { | |
mpv = super.mpv.override { jackaudioSupport = true; }; | |
imagemagick = super.imagemagick.overrideAttrs(old: rec { | |
version = "6.9.9-23"; | |
sha256 = "0cd6zcbcfvznf0i3q4xz1c4wm4cfplg4zc466lvlb1w8qbn25948"; | |
}); | |
}; |
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
imagemagick = super.imagemagick.overrideAttrs(old: rec { | |
version = "6.9.9-23"; | |
sha256 = "0cd6zcbcfvznf0i3q4xz1c4wm4cfplg4zc466lvlb1w8qbn25948"; | |
src = pkgs.fetchurl { | |
url = "mirror://imagemagick/releases/ImageMagick-${version}.tar.xz"; | |
inherit sha256; | |
}; | |
}); |
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
# NODE | |
ip a add 172.17.98.1/30 dev $veth | |
ip r add 172.17.100.2/32 via 172.17.98.2 dev $veth | |
# CT | |
ip a add 172.17.98.2/30 dev eth0 | |
ip link set up dev eth0 | |
ip r add default via 172.17.98.1 |
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
networking.nat.enable = true; | |
networking.nat.forwardPorts = [{ | |
sourcePort = 80; | |
destination = "IP:80"; | |
}]; |
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
2018-02-24T02:34:59.707197+00:00 devnode1 osctld[1378]: [ct=tank:myct01] Configuring cgroups | |
2018-02-24T02:34:59.707277+00:00 devnode1 osctld[1378]: [group=tank:root] Configuring group 'osctl' | |
2018-02-24T02:34:59.707395+00:00 devnode1 osctld[1378]: [cgroup] Set /sys/fs/cgroup/devices/osctl/devices.deny=a | |
2018-02-24T02:34:59.707478+00:00 devnode1 osctld[1378]: [cgroup] Unable to set /sys/fs/cgroup/devices/osctl/devices.deny=a: Invalid argument @ fptr_finalize_flush - /sys/fs/cgroup/devices/osctl/devices.deny | |
2018-02-24T02:34:59.707516+00:00 devnode1 osctld[1378]: [cgroup] Set /sys/fs/cgroup/devices/osctl/devices.allow=c 1:3 rwm | |
2018-02-24T02:34:59.707572+00:00 devnode1 osctld[1378]: [cgroup] Set /sys/fs/cgroup/devices/osctl/devices.allow=c 1:5 rwm | |
2018-02-24T02:34:59.707613+00:00 devnode1 osctld[1378]: [cgroup] Set /sys/fs/cgroup/devices/osctl/devices.allow=c 1:7 rwm | |
2018-02-24T02:34:59.707656+00:00 devnode1 osctld[1378]: [cgroup] Set /sys/fs/cgroup/devices/osctl/devices.allow=c 1:8 rwm | |
2018-02-24T02:34:59.707 |
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
Enable KVM and TUN features. | |
[me:~/]# mkdir /var/lib/libvirt/images | |
[me:~/]# mkdir lvirt-test | |
[me:~/]# # add network.nix and network-libvirt.nix from this gist | |
[me:~/lvirt-test]# export NIXOPS_DEPLOYMENT=test | |
[me:~/lvirt-test]# nixops create network.nix network-libvirt.nix |
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
let | |
pkgs = import <nixpkgs> { }; | |
overrides = | |
(self: super: | |
{ | |
bytes = pkgs.haskell.lib.dontCheck super.bytes; | |
}) | |
; |
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 ((import <nixpkgs> {}).fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
rev = "a0aeb23"; | |
sha256 = "04dgg0f2839c1kvlhc45hcksmjzr8a22q1bgfnrx71935ilxl33d"; | |
}){} | |
}: | |
let | |
inherit (pkgs) runCommand closurecompiler; | |
repo = pkgs.fetchFromGitHub { |