From 4bc7ebaf4c92ce746d1258ca53054aa8fd55f9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 16 Aug 2025 14:56:07 +0200 Subject: [PATCH] minor README improvements --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b022607..efe0f40 100644 --- a/README.md +++ b/README.md @@ -250,9 +250,7 @@ function client_ip(): string return $ipv6; } - return request()->hasHeader('CF-Connecting-IP') - ? request()->header('CF-Connecting-IP') - : request()->ip(); + return request()->header('CF-Connecting-IP') ?: request()->ip(); } ``` @@ -306,7 +304,7 @@ curl -s https://www.cloudflare.com/ips-v6 | sha256 | xargs nix hash convert --ha It's a good idea to have `/etc/nixos` tracked in version control so you can easily revert the config including the lockfile, not just system state. -The only thing in your lockfile should be `nixpkgs` unless you add more things to your system config. +The only thing in your lockfile should be `nixpkgs` unless you add more inputs to your system config. After rebuilding the system several times, you will have some past generations and unused files in the Nix store that can be cleaned up.