Skip to content

Instantly share code, notes, and snippets.

View oluceps's full-sized avatar
🔮

oluceps oluceps

🔮
View GitHub Profile
@CMCDragonkai
CMCDragonkai / nix_string_and_path_concatenation.md
Last active February 21, 2025 06:54
Nix: String and Path Concatenation #nix #nixos

Nix String and Path Concatenation

From Bas van Dijk:

To understand these things I would recommend using nix-repl:

$ nix-repl
Welcome to Nix version 1.11.2. Type :? for help.

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@edolstra
edolstra / nix-lang.md
Last active March 27, 2025 11:36
Nix language changes

This document contains some ideas for additions to the Nix language.

Motivation

The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
@Barneybook
Barneybook / Telegram_it_group_list.md
Last active April 8, 2025 13:15
Telegram 資訊相關 群組清單
@Nadrieril
Nadrieril / shell.nix
Last active April 10, 2025 21:50
Building LineageOS on NixOS
# I used this shell.nix to build LineageOS 13.0 for my maguro (Samsung Galaxy Nexus GSM) phone
# The build instructions for normal Linuxes are here: https://wiki.lineageos.org/devices/maguro/build
# For NixOS, follow those instructions but skip anything related to installing packages
# Detailed instructions:
# cd into an empty directory of your choice
# copy this file there
# in nix-shell:
# $ repo init -u https://github.com/LineageOS/android.git -b cm-13.0
# $ repo sync
# $ source build/envsetup.sh
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active March 26, 2025 17:03
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@lilydjwg
lilydjwg / btrfs-autosnapshot
Last active December 5, 2024 16:29
btrfs-autosnapshot
#!/usr/bin/python3
import os
import datetime
import subprocess
import logging
import tempfile
import contextlib
from pathlib import Path
@tazjin
tazjin / nix.md
Last active February 25, 2023 19:11
Nix Language Overview

This Gist Has Moved!

Please find its new home at github.com/tazjin/nix-1p.

The updated version contains more information and has issue tracking, hooray!


Nix - A One Pager

@MaxXor
MaxXor / btrfs-guide.md
Last active April 19, 2025 23:29
Btrfs guide to set up an LUKS-encrypted btrfs raid volume with included maintenance & recovery guide

Encrypted Btrfs storage setup and maintenance guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey