The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume| { | |
| description = "A nixos cloudinit base image without nixos-infect"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| }; | |
| outputs = { self, nixpkgs }: | |
| let | |
| system = "x86_64-linux"; |
The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume| sandbox = true | |
| extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env |
| { 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; }]; | |
| # }; |
| use v5.16; | |
| use warnings; | |
| package HTTP::Tiny::nc; | |
| use parent 'HTTP::Tiny'; | |
| our $VERSION = v0.0.3; | |
| # Copyright (c) 2019-2023 Andrew Hewus Fresh <afresh1@openbsd.org> | |
| # | |
| # Permission to use, copy, modify, and distribute this software for any |
| { config, lib, pkgs, ... }: | |
| let | |
| domain = "puerti.co"; | |
| waylandOverlay = (import (builtins.fetchTarball ({ | |
| url = "https://github.com/piensa/wayner/archive/1e62268.tar.gz"; | |
| sha256 = "07hzhdc9ic3sk4ivd0g3lx2f7jnr3wkrrr884hf5b1n7adzglh50"; | |
| }))); |
| services.xserver = { | |
| enable = true; | |
| monitorSection = '' | |
| Option "NODPMS" | |
| ''; | |
| serverLayoutSection = '' | |
| Option "BlankTime" "0" | |
| Option "DPMS" "false" | |
| ''; | |
| displayManager.auto.user = "guest"; |
I have always found systemd to be a reliable manager for my docker containers, here is a few examples that should be enough to get the general idea.
I thought a symbiotic example would be best as that's about as complicated as it gets.
Some basic systemd usage skills like how to use systemctl and deamon-reload are expeted.
(Remember NOT! to deamonize the containers! -d --deamonize in the docker command.)
| for (let i = 0; i < 0x80; i++) { | |
| try { I2C1.readFrom(i, 1); console.log(i); } catch (e) {} | |
| } |