Skip to content

Instantly share code, notes, and snippets.

View rngadam's full-sized avatar
💭
coderbunker.ca

Ricky Ng-Adam rngadam

💭
coderbunker.ca
View GitHub Profile
@rngadam
rngadam / nixos02.md
Created February 18, 2025 15:46
outputs.nixosConfigurations.nixos02.config.services.postgresql.dataDir
nix-repl> outputs.nixosConfigurations.nixos02.config.services.postgresql.dataDir
error:
       … while evaluating the attribute 'value'
         at /nix/store/5bni29qxcvbqygs8asgzd7gf5vvrs6ay-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;
@rngadam
rngadam / proxmox-virtiofs.md
Last active February 11, 2025 01:00
Sharing Proxmox host mount with VM with virtiofs

virtiofsd on Proxmox

installing

root@pve:/home/rngadam# apt install virtiofsd -y
root@pve:/home/rngadam# /usr/lib/kvm/virtiofsd --version
virtiofsd 1.10.1
@rngadam
rngadam / proxmox-lv-lxc.md
Last active February 18, 2025 20:53
Writable LVM volume hosted in Proxmox binded to a mount point within an LXC container

creating a shared media disk between LXC containers and VM for multimedia content

on the proxmox host

create the disk and mount it:

lvcreate -n media -V 100G pve/data
mkfs.ext4 /dev/pve/media 
mkdir -p /mnt/bindmounts/media
@rngadam
rngadam / agenix.md
Created February 10, 2025 19:53
agenix secret management

installing agenix

add the agenix module:

  inputs = {
    # NixOS official package source, using the nixos-24.11 branch here
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
    agenix.url = "github:ryantm/agenix";
    [...]
@rngadam
rngadam / peertube.md
Last active February 10, 2025 18:49
Installation of peertube on nixos

https://nixos.wiki/wiki/PeerTube

error:

Feb 10 11:09:02 nixos02 postgres[21626]: [21626] ERROR:  permission denied for schema public
Feb 10 11:09:02 nixos02 postgres[21626]: [21626] STATEMENT:  CREATE OR REPLACE FUNCTION immutable_unaccent(text)
Feb 10 11:09:02 nixos02 postgres[21626]:           RETURNS text AS
Feb 10 11:09:02 nixos02 postgres[21626]:         $func$
Feb 10 11:09:02 nixos02 postgres[21626]: SELECT public.unaccent('public.unaccent', $1::text)
@rngadam
rngadam / BENCHMARK.md
Last active January 29, 2025 21:02
Benchmark betweem MBP using Ethernet dongle and Beelink SER8
Exemple de conditions d'utilisation
@rngadam
rngadam / vsc-proxmox.md
Created December 20, 2024 14:13
Visual Studio Code Server setup on Proxmox (Gemini-generated)

Here's a step-by-step plan to configure a Proxmox server on your home network with an LXC container running Visual Studio Code Server, leveraging your existing router's SSH pass-through and DynDNS:

Phase 1: Proxmox Installation and Initial Setup

  1. Download Proxmox ISO:

    • Go to the official Proxmox website (www.proxmox.com) and download the latest ISO image.
  2. Prepare Bootable Media:

    • Create a bootable USB drive or DVD using a tool like Rufus (Windows), Etcher (cross-platform), or the dd command (Linux/macOS).
pdf2ps 5096f.pdf 5096f-rngadam.pdf
ps2pdf -dPDFSETTINGS=/ebook 5096f-rngadam.ps 5096f-rngadam.pdf
@rngadam
rngadam / xcp-ng.md
Created November 4, 2024 16:32
XCP-ng setup