WIP: home-manager modules and install tooling (in progress, unreviewed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1cugeLkfFLZMpiztQ8TyN
This commit is contained in:
30 files changed
+2619
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# 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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user