Files
Claude 7dd6853124 Normalize file modes to 644
All tracked files were committed as 755; only Nix reads them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JZ16yf4acmaSiHq81vyQ6Z
2026-10-12 20:41:48 +00:00

22 lines
532 B
Nix

# Rebuild this machine from the flake (nh when present, else nixos-rebuild).
# nh and nixos-rebuild are taken from the system PATH on purpose.
{
lib,
writeShellApplication,
coreutils,
git,
}:
writeShellApplication {
name = "switch-system";
runtimeInputs = [
coreutils
git
];
text = builtins.readFile ./switch-system.sh;
meta = {
description = "Rebuild and switch this NixOS machine from its flake (nh os / nixos-rebuild)";
mainProgram = "switch-system";
platforms = lib.platforms.linux;
};
}