Skip to content

Instantly share code, notes, and snippets.

View LudovicoPiero's full-sized avatar
🧛‍♀️
Narcissist.

Ludovico LudovicoPiero

🧛‍♀️
Narcissist.
View GitHub Profile
@LudovicoPiero
LudovicoPiero / nixos-btrfs-tmpfs.md
Created March 2, 2024 19:55 — forked from giuseppe998e/nixos-btrfs-tmpfs.md
Install NixOS with BTRFS and IN-RAM root

Install NixOS with BTRFS and IN-RAM root

1. Format and partition the hard drive

  1. Create the GPT partition table
    • $ parted /dev/sdX mklabel gpt
  2. Create the UEFI FAT32 partition (which will be /dev/sdXY)
    • $ parted /dev/sdX mkpart esp fat32 1MiB 512MiB
    • $ parted /dev/sdX set 1 esp on
    • $ parted /dev/sdX set 1 boot on
  • $ mkfs.fat -F 32 -n UEFI /dev/sdXY
@LudovicoPiero
LudovicoPiero / immich.nix
Created January 25, 2024 15:06 — 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
@LudovicoPiero
LudovicoPiero / twitter-download.sh
Created August 3, 2023 03:23
Twitter bulk downloader using nix and gallery-dl
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p gallery-dl
username='username_here'
password='password_here'
twitter_url='https://twitter.com/'
list_username=("username1" "username2")
for item in "${list_username[@]}"; do
@LudovicoPiero
LudovicoPiero / README.md
Last active April 19, 2024 20:49 — forked from evanrelf/README.md
Install NixOS on ZFS With Opt-In State

Install NixOS on ZFS With Opt-In State

Commands

# nvme0n1
# ├─nvme0n1p1    BOOT
# └─nvme0n1p2    LUKS CONTAINER
#   └─cryptroot  LUKS MAPPER
#     └─vg-swap  SWAP
@LudovicoPiero
LudovicoPiero / API's.md
Created June 2, 2023 08:28 — forked from Soheab/API's.md
See here some of the API's you can use in your discord bot or anything

Some API's for you.

See here some of the API's you can use in your discord bot or anything. For any help or questions on how to use one, please contact the owner of the API and not me.

A much bigger list of APIs can be found here


@LudovicoPiero
LudovicoPiero / nixos-install-with-opt-in-state.txt
Created April 26, 2023 20:02 — forked from Quelklef/nixos-install-with-opt-in-state.txt
NixOS installation with opt-in state (darling erasure)
==================================
INSTALLING NIXOS WITH OPT-IN STATE
Based mostly on:
grahamc.com/blog/erase-your-darlings
gist.github.com/mx00s/ea2462a3fe6fdaa65692fe7ee824de3e
nixos.org/manual/nixos/stable/
@LudovicoPiero
LudovicoPiero / ffmpeg.md
Created April 3, 2023 16:27 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@LudovicoPiero
LudovicoPiero / sway config
Created February 16, 2023 21:26
sway config
font pango:UbuntuMono Nerd Font 10.000000
floating_modifier Mod4
default_border pixel 2
default_floating_border normal 2
hide_edge_borders none
focus_wrapping no
focus_follows_mouse yes
focus_on_window_activation smart
mouse_warping output
workspace_layout default