Skip to content

Instantly share code, notes, and snippets.

@brokenpip3
brokenpip3 / nix-module-docs.py
Created July 13, 2024 11:01
small script to generate nix module doc from code
import os
import re
import argparse
def parse_nix_module(file_path):
options = {}
if not os.path.exists(file_path):
print(f"File not found: {file_path}")
return options
@brokenpip3
brokenpip3 / home-manager-remote.sh
Last active December 21, 2025 10:49
home-manager-remote: a simple bash script to build and apply remotely an home-manager configuration from your flake to the target hosts. Moved here: https://github.com/brokenpip3/my-binaries/tree/main/productivity/nix-specific/home-manager-remote
#!/usr/bin/env bash
#
# Home manager remote
#
# A simple bash script to build and apply a home-manager configuration
# from your flake to the target hosts.
# Can both build locally and copy the closure or build on target
#
# Usage:
# home-manager-remote.sh <flake_path> [target] [--build-on-target]