git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
{ pkgs }: | |
let plugins = pkgs.callPackage ./plugins.nix {}; | |
in { | |
customRC = ''${builtins.readFile ./vimrc}''; | |
vam = { | |
knownPlugins = pkgs.vimPlugins // plugins; | |
pluginDictionaries = [{ | |
names = [ | |
"Tagbar" | |
"css-pretty" |
This document contains some ideas for additions to the Nix language.
The Nix package manager, Nixpkgs and NixOS currently have several problems:
enableFoo
, but there is no way for the Nix
UI to discover them, let alone to provide programmatic ways toself: super: | |
let | |
# Import unstable channel. | |
# $ sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
# $ sudo nix-channel --update nixpkgs-unstable | |
unstable = import <nixpkgs-unstable> {}; | |
in | |
{ |
#compdef swaymsg | |
typeset -A opt_args | |
__swaymsg() { | |
# Reuse socket path from command line if present | |
swaymsg ${(kv)opt_args[(I)-s|--socket]} "$@" 2>/dev/null | |
} | |
# _sway | |
# sway ipc {{{ |
# MIT License, see below | |
# | |
# These are some helpers for figuring out the derivations attributes of runtime | |
# dependencies of a derivation, in particular the function `runtimeReport`. At | |
# the bottom of the file you can see it used on `hello`. Spoiler: glibc is a | |
# runtime dependency. | |
# For more info see | |
# | |
# https://nmattia.com/posts/2019-10-08-runtime-dependencies.html |
Okay, I've got a need to build Firefox from source, and I'd like to do that on a remote machine, and then copy build result back to my laptop. With Nix, using bastion host. I'll note details of my successful adventure.
Here's the list of resources I've used actively:
Here's my setup: