Skip to content

Instantly share code, notes, and snippets.

@vamega
vamega / Journalctl logs from podman-immich_server.service
Created May 8, 2024 15:40
Immich on NixOS with compose2nix issues
Starting podman-immich_server.service...
2024-05-08 11:36:33.029575586 -0400 EDT m=+0.046308167 container create 6d10100ba5832a925d2891f8af44092b5ece0175161e7a521df05e0985896e80 (image=ghcr.io/immich-app/immich-server:release, name=immich_server, org.o>
2024-05-08 11:36:33.01124559 -0400 EDT m=+0.027978180 image pull 21c6ebb2de5315f09371cf94c484c472846c0542fc85479ffafba36a6924ec02 ghcr.io/immich-app/immich-server:release
2024-05-08 11:36:33.162045273 -0400 EDT m=+0.178777852 container init 6d10100ba5832a925d2891f8af44092b5ece0175161e7a521df05e0985896e80 (image=ghcr.io/immich-app/immich-server:release, name=immich_server, PODMAN_>
2024-05-08 11:36:33.164859533 -0400 EDT m=+0.181592118 container start 6d10100ba5832a925d2891f8af44092b5ece0175161e7a521df05e0985896e80 (image=ghcr.io/immich-app/immich-server:release, name=immich_server, org.op>
Started podman-immich_server.service.
6d10100ba5832a925d2891f8af44092b5ece0175161e7a521df05e0985896e80
Error: connect ETIMEDOUT
at Socket.<anonymous> (/usr/src/app/node
@vamega
vamega / h9pmqy5s1lll5i9ww6a55mnd435zq6fj-janet-1.29.1.drv
Last active August 9, 2023 03:07
Janet 1.29.1 Build Failure - Nix - Apple Silicon
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/ifm3asp6hqwv0p3yg4h7rzfcr67ad0zl-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@vamega
vamega / sshguard-blacklist-merge.py
Created July 11, 2023 19:49
SSHGuard Blacklist Merge
#!/usr/bin/env python3
"""SSHGuard Blacklist Merger
This script takes a list of SSHGuard blacklist files as arguments, and
outputs an SSHGuard blacklist file that is the merger of all of them.
The timestamp of the last seen value in the merged output is the last time
an entry was seen in any of the input files. An entry is the unique by
ip address, ip protocol version and SSHGuard service type.
@vamega
vamega / sourcegraph-app.nix
Created April 18, 2023 00:53
sourcegraph-app derivation
{
stdenv,
lib,
fetchzip,
autoPatchelfHook,
}:
stdenv.mkDerivation rec {
pname = "sourcegraph-app";
version = "2023.03.27+210185.ae7f7";
@vamega
vamega / flake.nix
Created April 10, 2023 14:28
My flake.nix showing inputs
{
description = "A very basic flake";
inputs = {
# normal nix stuff
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
templates.url = "github:NixOS/templates";
home-manager = {
@vamega
vamega / caddy.nix
Created June 6, 2022 20:53
Caddy build failure with Nixpkgs 22.05
{ vendorSha256, lib, buildGo117Module, fetchFromGitHub, nixosTests
, plugins ? [ ] }:
let
version = "2.5.1";
dist = fetchFromGitHub {
owner = "caddyserver";
repo = "dist";
rev = "v${version}";
sha256 = "sha256:1h91sb2fzfyzaaw4z2ga8pgcwfx4hp9x1s9ca940vf31kk1lydza";
};
@vamega
vamega / cloudinit.yaml
Last active July 3, 2022 07:36 — forked from kradalby/cloudinit.yaml
Oracle Linux 8.5 to NixOS with ESP resizing
#cloud-config
# vim: syntax=yaml
# Derived from https://gist.github.com/kradalby/0957a5d4fbb9018d0b700b118f5c5341
disable_root: false
ssh_authorized_keys: []
write_files:
- path: "/etc/ssh/sshd_config.d/permit_root"
owner: "root:root"
permissions: "0644"
@vamega
vamega / README.txt
Last active May 19, 2022 15:24
Caddy with modules ( Does Not Work )
Reproduction of issue described in: https://discourse.nixos.org/t/unable-to-build-caddy-with-custom-modules/19125
Problem was found to be the reused value of the sha256 in the `dist` and `src` derivations.
@vamega
vamega / nix-on-macos-catalina.md
Created August 26, 2021 05:08 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

@vamega
vamega / Apt autoremove
Last active November 25, 2018 05:59
Debian Networking Issue Log
vmadiath@nexus:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
cockpit-networkmanager cockpit-storaged crda dnsmasq-base eject exfat-fuse exfat-utils iputils-arping iw
libatasmart4 libbluetooth3 libdbus-glib-1-2 libgudev-1.0-0 libjansson4 libjim0.76 libmbim-glib4 libmbim-proxy
libmm-glib0 libndp0 libnl-3-200 libnl-genl-3-200 libnm0 libpcsclite1 libqmi-glib5 libqmi-proxy libsoup2.4-1
libteamdctl0 libudisks2-0 modemmanager network-manager python3-dbus udisks2 usb-modeswitch usb-modeswitch-data
wireless-regdb wpasupplicant