Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created August 2, 2017 18:56
Show Gist options
  • Save infinisil/6aec60f4062c5a5d28695985b3f5149d to your computer and use it in GitHub Desktop.
Save infinisil/6aec60f4062c5a5d28695985b3f5149d to your computer and use it in GitHub Desktop.
Command: nixos-version (present)
17.09.git.a7c8f5e (Hummingbird)
Command: lsb_release -a (absent)
Command: nix-env --version (present)
nix-env (Nix) 1.12pre5511_c94f3d55
Command: nix-instantiate --eval <nixpkgs> -A lib.nixpkgsVersion (present)
warning: Nix search path entry ‘/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs’ does not exist, ignoring
error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
Command: env | grep -iE "^nix"
NIX_REMOTE=daemon
NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /home/infinisil/.nix-profile /etc/per-user-pkgs/infinisil
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
NIX_CONF_DIR=/etc/nix
NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/infinisil
NIXPKGS_CONFIG=/etc/nix/nixpkgs-config.nix
NIX_GHC=/nix/store/gc1vfpl6f3y3nb39p4yf3djavqdfj3g9-ghc-8.0.2-with-packages/bin/ghc
File: /etc/os-release (present)
NAME=NixOS
ID=nixos
VERSION="17.09.git.a7c8f5e (Hummingbird)"
VERSION_CODENAME=hummingbird
VERSION_ID="17.09.git.a7c8f5e"
PRETTY_NAME="NixOS 17.09.git.a7c8f5e (Hummingbird)"
HOME_URL="https://nixos.org/"
SUPPORT_URL="https://nixos.org/nixos/support.html"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
File: /etc/NIXOS (present)
Command: nix-build -E let pkgs = (import <nixpkgs> {});
in pkgs.stdenv.mkDerivation {
name="diagnostics";
buildInputs = [ pkgs.curl ];
phases = [ "buildPhase" ];
buildPhase = ''
set +e
set -x
echo "Current Time: ${toString builtins.currentTime}"
date
curl -Ivm1 https://nixos.org;
ls /
set +x
'';
} (present)
warning: Nix search path entry ‘/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs’ does not exist, ignoring
error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:20
Command: grep build-use-sandbox /etc/nix/nix.conf (present)
build-use-sandbox = true
Command: mount (present)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=404276k,nr_inodes=1009351,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=3,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=2021380k,mode=755)
ramfs on /run/keys type ramfs (rw,nosuid,nodev,relatime,mode=750,gid=96)
tmpfs on /run/wrappers type tmpfs (rw,nodev,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
main/root/nixos on / type zfs (rw,relatime,xattr,noacl)
main/root/nixos on /nix/store type zfs (ro,relatime,xattr,noacl)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
main/home on /home type zfs (rw,relatime,xattr,noacl)
main/global on /global type zfs (rw,relatime,xattr,noacl)
main/root/nixos on /var/lib/docker/devicemapper type zfs (rw,relatime,xattr,noacl)
/dev/sda4 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=808548k,mode=700,uid=1000,gid=100)
Command: lsblk (present)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 447.1G 0 disk
├─sda1 8:1 0 200M 0 part
├─sda2 8:2 0 279.8G 0 part
├─sda3 8:3 0 619.9M 0 part
├─sda4 8:4 0 200M 0 part /boot
└─sda5 8:5 0 166.4G 0 part
zram0 253:0 0 987M 0 disk [SWAP]
zram1 253:1 0 987M 0 disk [SWAP]
zram2 253:2 0 987M 0 disk [SWAP]
zram3 253:3 0 987M 0 disk [SWAP]
File: /etc/nixos/hardware-configuration.nix (present)
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "ohci_pci" "firewire_ohci" "usbhid" "usb_storage" "uas" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
fileSystems."/" =
{ device = "main/root/nixos";
fsType = "zfs";
};
fileSystems."/var/lib/docker/devicemapper" =
{ device = "/var/lib/docker/devicemapper";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/home" =
{ device = "main/home";
fsType = "zfs";
};
fileSystems."/global" =
{ device = "main/global";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B01E-7924";
fsType = "vfat";
};
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = "powersave";
}
Command: nix-instantiate -v <nixpkgs/nixos> -A system (present)
evaluating file ‘/nix/store/g1rivd2xy9k1gvaknm0x4lw6l6z10pds-nix-1.12pre5511_c94f3d55/share/ni
warning: Nix search path entry ‘/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs’
error: file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or
Command: nix-instantiate -v <nixpkgs> -A hello (present)
evaluating file ‘/nix/store/g1rivd2xy9k1gvaknm0x4lw6l6z10pds-nix-1.12pre5511_c94f3d55/share/ni
warning: Nix search path entry ‘/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs’
error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment