-
Nix (uppercase N): a Domain-specific language with meta language roots;
-
nix (lowercase N): a CLI toolkit developed by NixOS Foundation which core's to evaluating Nix;
-
Nix's ecossystem (Written with Nix or using nix):
- Nixpkgs: repository of all united efforts related to packaging programs and creating a system to run them;
- NixOS: a Linux-distro, subproduct of Nixpkgs;
- Home-manager: a dotfiles manager using Nixpkgs;
- Impermanence: Immutable RootFS for NixOS;
- Flake: Declarative description (artifacts and depedencies) for Nix's projects (our take on NPM's
package.json
);
-
Anything else under github:NixOS, under github:nix-community, public repositories with a
/flake.nix
, or public repositories with a/default.nix
.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 node | |
/* Author: Pedro H L Campos <https://keybase.io/pedrohlc> | |
License: GPL-3.0-or-later <https://spdx.org/licenses/GPL-3.0-or-later.html> | |
*/ | |
const { Source, buildSchema, buildClientSchema, getIntrospectionQuery, printSchema, validate, parse } = require('graphql'); | |
const fs = require('fs'); | |
async function main(stdin, argv) { | |
// Remove interpreter and script | |
argv.shift(); |
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
{ | |
"nodes": { | |
"chaotic": { | |
"inputs": { | |
"compare-to": "compare-to", | |
"flake-schemas": "flake-schemas", | |
"home-manager": "home-manager", | |
"jovian": "jovian", | |
"nixpkgs": "nixpkgs", | |
"systems": "systems", |
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
# This file is automatically @generated by Cargo. | |
# It is not intended for manual editing. | |
version = 3 | |
[[package]] | |
name = "addr2line" | |
version = "0.21.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" | |
dependencies = [ |
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
Moved to https://github.com/PedroHLC/nix-ullib |
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 bash | |
set -euo pipefail | |
LAUNCH_SEARCHING="$1" | |
exec $(awk '/^Exec=/{sub(/^Exec=/, ""); print $1}' $(echo -n "$XDG_DATA_DIRS" |\ | |
xargs -d ':' -ri \ | |
find -H '{}/applications/' -iname "${LAUNCH_SEARCHING}*.desktop" 2>/dev/null |\ | |
head -n 1)) |
Ran on /tmp (with useTmpfs), where the files are, and directly from TTY1 (without any DE running).
-
Shell A:
nix shell nixpkgs#hyperfine nixpkgs#ffmpeg-headless
-
Shell B:
nix shell nixpkgs#hyperfine chaotic#pkgsx86_64_v3.ffmpeg-headless
-
Benchmark parameter:
hyperfine -w 3 -M 10
-
Benchmark command:
ffmpeg -threads 1 -y -i 01._Radio_Ga_Ga.flac -f ogg /dev/null
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
(()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{install:()=>l}),TaskPort;const t=JSON.parse('{"u2":"elm-localstorage","i8":"1.0.1"}'),r=t.i8,s="lobanov/"+t.u2;function l(e){const o=e.createNamespace(s,r);o.register("localGet",(e=>window.localStorage.getItem(e))),o.register("localPut",(({key:e,value:o})=>window.localStorage.setItem(e,o))),o.register("localRemove",(e=>window.localStorage.removeItem(e))),o.register("localList",(()=>{const e=Array(window.localStorage.length);for(let o=0;o<e.length;o++)e[o]=window.localStorage.key(o);return e})),o.register("localClear",(()=>window.localStorage.clear())),o.register("sessionGet",(e=>window.sessionStorage.getItem(e))),o.register("sessionPut",(({key:e,value:o}) |
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, lib, ... }: | |
{ | |
# Docker is already initialized | |
boot = { | |
isContainer = true; | |
initrd.enable = false; | |
kernel.enable = false; | |
loader.grub.enable = false; | |
modprobeConfig.enable = false; | |
}; |
NewerOlder