Skip to content

Instantly share code, notes, and snippets.

@MarkJr94
MarkJr94 / immich.nix
Created April 26, 2024 09:22 — forked from mfenniak/immich.nix
NixOS configuration for Immich, based upon upstream docker-compose.yml
{ config, ... }:
let
immichHost = "immich.example.com"; # TODO: put your immich domain name here
immichRoot = "/tank/immich"; # TODO: Tweak these to your desired storage locations
immichPhotos = "${immichRoot}/photos";
immichAppdataRoot = "${immichRoot}/appdata";
immichVersion = "release";
immichExternalVolume1 = "/tank/BackupData/Google Photos/someone@example.com"; # TODO: if external volumes are desired
@MarkJr94
MarkJr94 / cloud-ssl.conf
Created January 2, 2017 10:57 — forked from halfsight5000/cloud-ssl.conf
owncloud vhost subdomain
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName sub.domain.com
ServerAlias sub.domain.com
# Next line puts ownCloud at the domain root instead of a /cloud/ subdirectory (e.g. example.com vs. example.com/owncloud/)
Alias /cloud "/var/www/cloud/"
DocumentRoot /var/www/cloud
@MarkJr94
MarkJr94 / foo.rs
Created December 6, 2013 08:08 — forked from emberian/foo.rs
#[feature(globs)]
fn private() {
println("I am private");
}
mod test {
use super::*;
#[test]