#flakes — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #flakes, aggregated by home.social.
-
NixOS - Setup-Guide, Teil 2
In diesem Teil geht es darum wie Starkoch NixOS wirklich zum Sternekoch wird. Wie man die Integration anderer Köche vorbereitet und wie die Speisekarte gesichert wird.
-
I found the reason, it's because of this:
https://github.com/NixOS/flake-registry?tab=readme-ov-file#flake-inputsLooks like it's available for every nix flake users officially and one can implicitly turn it off by configuring the registry options I guess.
But it's suggested to add inputs explicitly, since u might change ur registry later in ur configs in future.
Unexpected learning🤝
Thanks for pointing out this
@justdudeI didn't even notice. LoL.
#nix #flake #flakes #nixflakes #nixregistry #nixconfig #config -
@BrideOfLinux #nixos #flake #flakes #claude #claudecode
in flake.nixclaude = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_24
nodejs_24.pkgs.npm
];shellHook = ''
# Install claude-code if not already installed
if ! command -v claude-code &> /dev/null; then
echo "📦 Installing claude-code..."
npm install -g @anthropic-ai/claude-code
fi
'';
};
then: nix develop .#claude
from the flake directory
then: claude -
and now I reveal the secret third thing I use to build my system: unflake
unflake is a tool that allows you to stop writing
.inputs.foo.inputs.nixpkgs.followsall the time while deduplicating your dependencies. it also frees you from other flake idiosyncrasies like requiringflake.nixto be committed to the repo or copying the whole directory into the store.README has more details and you can ask me questions about it here or in a discourse thread
(or direct codeberg link: https://codeberg.org/goldstein/unflake)