Skip to content

Instantly share code, notes, and snippets.

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`
{ pkgs ? import <nixpkgs> {}
, cairo ? pkgs.cairo
, fetchurl ? pkgs.fetchurl
, glib ? pkgs.glib
, patchelf ? pkgs.patchelf
, stdenv ? pkgs.stdenv
, xorg ? pkgs.xorg
, nss
, nspr
, gnome3
{ ... }:
{
boot.loader.grub.extraConfig = ''
insmod setpci;
setpci -s "00:17.0" 3e.b=8;
setpci -s "02:00.0" 04.b=7;
'';
}
$ 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
{ config, pkgs, ... }:
# Custom packages
let
mozillaPkgsDir = (import <nixpkgs>{config={};}).fetchFromGitHub {
owner = "Infinisil";
repo = "nixpkgs-mozilla";
rev = "d13abfc71b2bbc6a6effda0b598c82b79c5e6512";
sha256 = "0panppfq354qgdq1hf8dimdmmfz36s85nfn4c6ila75icrsd1mx8";
fetchSubmodules = true;
[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 -
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")
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}";
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.gitlab-runner;
configFile = pkgs.writeText "config.toml" cfg.configText;
in
{
options.services.gitlab-runner = {
@cleverca22
cleverca22 / configuration.nix
Last active February 5, 2024 00:06
NixOS virtualbox guest additions
# ...
virtualisation.virtualbox.guest.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
linuxPackages = pkgs.linuxPackages // {
virtualboxGuestAdditions = pkgs.callPackage ./virtualbox-guest.nix {};
};
};
# ...