ari 11f1207418 pkgs/delta: fix RPATH and set interpreter
The patchelf package ships a setup hook that runs 'patchelf --shrink-rpath' on every ELF during fixup, which rewrites DT_RPATH as DT_RUNPATH. RUNPATH is not inherited by the bundled libs, so libXau.so.6 and friends were not found. Set dontPatchELF to keep the RPATH, and set the interpreter to the NixOS glibc instead of relying on /lib64.
2026-09-25 15:10:04 -04:00
2026-08-13 10:31:52 -04:00
2026-09-11 10:03:14 -04:00
2026-09-24 16:16:40 -04:00
2026-09-25 14:59:18 -04:00
2026-06-21 00:11:14 -04:00
2026-09-22 22:21:12 -04:00
2026-06-21 00:11:14 -04:00
2024-04-25 15:58:56 -04:00
2025-07-08 12:34:25 -04:00
2026-09-24 16:16:40 -04:00
2026-09-11 16:22:22 -04:00
2026-09-14 10:24:37 -04:00
2026-08-13 10:31:52 -04:00
2026-09-25 10:26:08 -04:00
2026-09-25 14:51:13 -04:00
2026-09-22 22:21:12 -04:00

NixOS System Configurations

My comprehensive Nix configurations for managing multiple hosts, including local machines and remote servers.

Repository Layout

nixos-setup/
├── bin/
│   └── skyg              # Main CLI tool for managing NixOS configurations
├── configs/              # Application-specific configurations
├── pkgs/                 # Custom packages (niri-touchscreen-gestures, grok-cli)
├── hosts/                # Host-specific NixOS configurations
│   ├── *.nix             # Host configuration files (fwbook, hl-bigbox1, hl-minipc*, etc.)
│   ├── *.hardware-configuration.nix  # Hardware-specific configurations
│   └── scripts/          # Host-specific scripts
├── modules/              # Reusable NixOS and Home Manager modules
│   ├── core/             # Core system modules
│   ├── home/             # Home Manager modules
│   ├── nixos/            # NixOS-specific modules
│   └── *.nix             # Utility modules (lib, skyg-utils, network-drives, etc.)
├── apps/                 # Standalone applications
├── flake.nix             # Nix flake definition
├── flake.lock            # Locked dependency versions
└── README.md             # This file

Using This Flake

To use the custom packages in your own NixOS/Home Manager configuration:

{
  inputs.nixos-setup.url = "github:skykanin/nixos-setup";

  outputs = { self, nixpkgs, nixos-setup, ... }:
    let
      system = "x86_64-linux";
      pkgs = nixos-setup.lib.pkgs.${system};
    in {
      environment.systemPackages = with pkgs; [
        niri-touchscreen-gestures
      ];
    };
}

You can also import nixos-setup.lib to reuse makeNixOs, makeHomeManagerUsers, and other utilities.

See pkgs/ABOUTME.md for details on each package.

Quick Start

The skyg script is your main interface for managing these configurations. It's located in bin/skyg and uses NuShell.

Available Commands

System Management

  • skyg build - Build the current system configuration
  • skyg switch - Switch to a new configuration (with confirmation)
  • skyg test - Test a configuration without switching
  • skyg rollback - Rollback to the previous generation

Profile Management

  • skyg profiles - List all available local profiles
  • skyg profiles --only_remote - List only remote profiles (prefixed with hl-)

Flake Updates

  • skyg update - Update all flakes to their latest versions
  • skyg update <flake_name> - Update a specific flake (e.g., skyg update nixpkgs)

Displays the diff of flake.lock after updating.

Remote Deployments

  • skyg remote <command> <target> - Deploy to a remote machine

Supported remote commands: test, dry-activate, run, switch, build

Example: skyg remote switch bigbox1 deploys using the hl-bigbox1 profile to root@bigbox1.lab.internal

Home Manager

  • skyg hm switch [profile] - Apply home-manager configuration (default: ari)
  • skyg hm build [profile] - Build home-manager configuration

Example: skyg hm switch ari or skyg hm switch

ISO Images

  • skyg build-iso - Build a bootable ISO image

Usage Examples

# Check available profiles
skyg profiles

# Build and switch to new configuration
skyg build
skyg switch

# Test configuration before switching
skyg test

# Update dependencies
skyg update nixpkgs

# Deploy to a remote server
skyg remote switch bigbox1

# Rollback if something goes wrong
skyg rollback

# Apply home-manager changes
skyg hm switch

Using Custom Packages

All packages from pkgs/ are available in your configuration as pkgs.<name> thanks to the overlay.

Example:

environment.systemPackages = with pkgs; [ niri-touchscreen-gestures ];

See pkgs/ABOUTME.md for details on each package.

Managing Secrets

Secrets are encrypted using agenix and stored in secrets/.

Adding a Host to Secrets

  1. Get the host's SSH public key: cat /etc/ssh/ssh_host_ed25519_key.pub
  2. Add to secrets.nix: Create a variable with the key and add it to each secret's publicKeys list
  3. Re-encrypt: for each affected secret run skyg decrypt <name> then skyg encrypt <name> to re-encrypt it against the updated key set

For more details, see secrets/ABOUTME.md.

Host Profiles

Available profiles include:

  • Local: fwbook (Framework laptop)
  • Remote: hl-bigbox1, hl-bigbox2, hl-fwdesk, hl-fws1, hl-minipc1, hl-minipc2, hl-minipc3, hl-terra1
  • ISO: iso (bootable image)

All profiles automatically have access to the custom packages from the pkgs/ directory.

S
Description
No description provided
Readme
39 MiB
0 Stars 1 Watchers 0 Forks
Languages
Nix 58.8%
Nushell 9.7%
Lua 9.2%
Python 5.7%
QML 5.3%
Other 11.3%