From 18e1805285487e44180ca4c52a57af2223530d2b Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 5 Jun 2026 11:24:29 +0900 Subject: [PATCH] README: add long command examples with dynamic hostname --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d74c43c..b860d34 100644 --- a/README.md +++ b/README.md @@ -45,12 +45,16 @@ Build configuration without switching: ``` nix build .#nixosConfigurations.tsuki.config.system.build.toplevel -L + +nix build .#nixosConfigurations."$(hostname)".config.system.build.toplevel -L ``` Check why configuration depends on package: ``` NIXPKGS_ALLOW_INSECURE=1 nix why-depends .#nixosConfigurations.tsuki.config.system.build.toplevel .#nixosConfigurations.tsuki.pkgs.suspiciousPackage + +NIXPKGS_ALLOW_INSECURE=1 nix why-depends .#nixosConfigurations."$(hostname)".config.system.build.toplevel .#nixosConfigurations."$(hostname)".pkgs.suspiciousPackage ``` Re-encrypt sops secrets with new key: