This file contains hidden or 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
{ stdenv, fetchurl, unzip, interface, writeText, jre }: | |
let allSight = writeText "Allsight.svg" (builtins.readFile ./Allsight.svg); | |
swoosh = writeText "swoosh.svg" (builtins.readFile ./swoosh.svg); | |
in stdenv.mkDerivation { | |
name = "static-assets"; | |
phases = [ "unpackPhase" "installPhase" ]; | |
buildInputs = [ jre unzip ]; | |
installPhase = '' | |
mkdir -p $out | |
cp ${allSight} $out/Allsight.svg |
This file contains hidden or 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
normal nixos machine: | |
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.14, channels(root): "nixos-18.03pre114421.799435b7ca", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs | |
- system: `"x86_64-linux"` | |
- host os: `Linux 4.9.46, NixOS, 18.03pre114421.799435b7ca (Impala)` | |
- multi-user?: `yes` | |
- sandbox: `relaxed` | |
- version: `nix-env (Nix) 1.11.14` | |
- channels(root): `"nixos-18.03pre114421.799435b7ca"` | |
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs` |
This file contains hidden or 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> {} | |
, cairo ? pkgs.cairo | |
, fetchurl ? pkgs.fetchurl | |
, glib ? pkgs.glib | |
, patchelf ? pkgs.patchelf | |
, stdenv ? pkgs.stdenv | |
, xorg ? pkgs.xorg | |
, nss | |
, nspr | |
, gnome3 |
This file contains hidden or 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
{ ... }: | |
{ | |
boot.loader.grub.extraConfig = '' | |
insmod setpci; | |
setpci -s "00:17.0" 3e.b=8; | |
setpci -s "02:00.0" 04.b=7; | |
''; | |
} |
This file contains hidden or 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
$ sha256sum VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle | |
82178c109f987bb6740171572516f533a725f3563a26d628c769a88bcd4a84f7 VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle | |
$ split -b 15163 -d -a 10 VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle output | |
$ rm output0000000000 | |
$ cat output* > result |
This file contains hidden or 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
{ config, pkgs, ... }: | |
# Custom packages | |
let | |
mozillaPkgsDir = (import <nixpkgs>{config={};}).fetchFromGitHub { | |
owner = "Infinisil"; | |
repo = "nixpkgs-mozilla"; | |
rev = "d13abfc71b2bbc6a6effda0b598c82b79c5e6512"; | |
sha256 = "0panppfq354qgdq1hf8dimdmmfz36s85nfn4c6ila75icrsd1mx8"; | |
fetchSubmodules = true; |
This file contains hidden or 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
[root@amd-nixos:~]# zfs list -t snapshot -r amd/root | |
NAME USED AVAIL REFER MOUNTPOINT | |
amd/root@zfs-auto-snap_monthly-2016-11-01-00h00 115M - 2.56G - | |
amd/root@zfs-auto-snap_monthly-2016-12-01-00h00 577M - 3.14G - | |
amd/root@zfs-auto-snap_monthly-2017-01-01-00h00 393M - 3.75G - | |
amd/root@zfs-auto-snap_monthly-2017-02-01-00h00 18.4M - 3.99G - | |
amd/root@zfs-auto-snap_monthly-2017-03-01-00h00 69.4M - 4.26G - | |
amd/root@zfs-auto-snap_monthly-2017-04-01-00h00 857M - 4.76G - | |
amd/root@zfs-auto-snap_monthly-2017-05-01-00h00 15.9M - 9.36G - | |
amd/root@zfs-auto-snap_monthly-2017-06-01-00h00 13.8M - 9.39G - |
This file contains hidden or 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
diff --git a/default.nix b/default.nix | |
index a7b8b08..198ddf8 100644 | |
--- a/default.nix | |
+++ b/default.nix | |
@@ -1,4 +1,4 @@ | |
-with import <nixpkgs> {}; | |
+with builtins; | |
map (id: | |
- import (fetchurl "https://infinisil.io/nix/${id}.nix") | |
+ import (fetchurl "https://infinisil.io/nix/${toString id}.nix") |
This file contains hidden or 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> {}; | |
in | |
pkgs.pkgsi686Linux.stdenv.mkDerivation rec { | |
name = "scyther-${version}"; | |
version = "1.1.3"; | |
src = pkgs.fetchFromGitHub { | |
owner = "cascremers"; | |
repo = "scyther"; | |
rev = "v${version}"; |
This file contains hidden or 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
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.gitlab-runner; | |
configFile = pkgs.writeText "config.toml" cfg.configText; | |
in | |
{ | |
options.services.gitlab-runner = { |