Neovim IDE in a NixOS Docker Container
docker run --volumes-from=nix -it \
-v $(pwd):/home \
-w /home \
--name <change-me> \
-p 9005:9005 \
-p 3000:3000 \
# INSTRUCTIONS: | |
# 1. Follow the installation instructions at | |
# https://nixos.org/nixos/manual/index.html until | |
# /mnt/etc/nixos/configuration.nix is edited | |
# 2. Replace that file with this one: | |
# -> curl -L -o /mnt/etc/nixos/configuration.nix https://go.nzbr.de/zoomvm | |
# 3. You will need to edit this configuration if you want a locale other than | |
# german (i18n and xserver.locale) or not use UEFI (boot.loader) | |
# 4. Run `nix-env -i git` to install git on the live system (may take some time) | |
# 5. Run nixos-install |
#!/usr/bin/env bash | |
# From https://github.com/pinealan/dotfiles | |
nix-list() { | |
nix-env --list-generations | |
} | |
get_current_gen() { | |
if [ -z $1 ] ; then | |
# default to current generation of nix-env |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: plex-claim-token | |
namespace: media | |
type: Opaque | |
data: | |
token: ${API_TOKEN_OPAQUE} | |
--- | |
apiVersion: v1 |
{ pkgs, lib, ... }: | |
with lib; | |
{ | |
config = { | |
i18n.defaultLocale = "de_DE.UTF-8"; | |
time.timeZone = "Europe/Paris"; | |
services = { |
{ pkgs ? import <nixpkgs> {} }: | |
let | |
# To use this shell.nix on NixOS your user needs to be configured as such: | |
# users.extraUsers.adisbladis = { | |
# subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
# subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
# }; |
GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
Table of Contents
This gist contains example of how you can configure nginx reverse-proxy with autmatic container discovery, SSL certificates generation (using Let's Encrypt) and auto updates.
Features: