#flakes

2025-12-17

@weston
1st: youtu.be/JCeYq72Sko0
2nd: youtu.be/ACybVzRvDhs
#nixos #flakes #newbies
Moving to flakes is scary because one has to re-factor the configuration.nix and so fears breaking things, but in fact you can keep it as it is and split it and just comment out a small part of that file and plonk parts into other modules to get going. Once that works identically to before, one can start really adding & changing stuff. Install #claude Code in flake dir & it can do it for you -> amazing !!!

2025-12-16

đŸŽ‰đŸ„ł Today I built my first #NixOS overlay 
 but now I’m at the point where I’m seriously considering using #flakes. It’s about this tool btw:

:crt_w_prompt: EKPHOS: a terminal alternative to #Obsidian (currently in early development but very promising)

ekphos.xyz/

A screenshot of the tool ekphos
2025-12-14

Bolshevix: #Nix fork, a politics-first project and a social experiment with a dedicated Combat wing responsible for maintaining the firing squads and implementing the Final Solution to the #Flakes problem

2025-12-13

@BrideOfLinux #nixos #flake #flakes #claude #claudecode
in flake.nix

claude = 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.follows all the time while deduplicating your dependencies. it also frees you from other flake idiosyncrasies like requiring flake.nix to 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

discourse.nixos.org/t/unflake-

(or direct codeberg link: codeberg.org/goldstein/unflake)

#nix #flake #flakes

2025-11-25

In a #nixos #build and #switch of a #flake, my entire #rust #derivation ( which is just a program in the flake ) gets built meaning that it takes eons: even if the change to the flake that made the build necessary was a trivial change to a thing that has no interaction with the rust derivation. What am I doing wrong? Thanks for any pointers... #flakes #buildtime #buildtimes

2025-11-23

– Kaikki suosittelevat #flakes'ejĂ€, kukaan ei kerro miten niitĂ€ kĂ€ytetÀÀn.

– Muutenkin ”NixOS Manual” tuntuu hyppÀÀvĂ€n monessa asiassa syvÀÀn pÀÀtyyn vĂ€littĂ€mĂ€ttĂ€ tarpeellisista vĂ€livaiheista. Mm. se, ettĂ€ pakettivalikoimaa muutettuaan joutuu ajamaan ”nixos-rebuild switch” -komennon, mainitaan lĂ€hinnĂ€ vain ohimennen jossakin aivan eri kohdassa.

– Kolmannen osapuolen ohjelmien asentamisesta ei mainita missÀÀn mitÀÀn. Onko mahdollistakaan? 2/2

Vivekanandan KS :nixos:vivekanandanks@mstdn.social
2025-11-21

@determinatesystems

Non flake (just a function):

` {inputs_global }:{ } `

The function inputs depends on a global value here.

Flakes:

```nix
inputs = { specific version }
outputs = { inputs }: { }
```

Where inputs are set with controlled specific version we like, outputs is a function and instead of a global value, we precisely control the inputs passed to the function.

In short:
Flakes just to control inputs to the function precisely. 😁😁

#nix #flakes #control #version #nixos

Determinate Systems, Inc.determinatesystems@hachyderm.io
2025-11-20

Nix #flakes are one of the most discussed and debated features in the #Nix ecosystem. In this blog post, we cover what they solve, what they don't solve, and the future of the capability in Nix: determinate.systems/blog/nix-f

2025-11-04

Rust Flakes are excellent until you encounter a native C dependency like FFmpeg. Here's how I "Flakified" Tanim (an alternative to Manim where you use Typst instead of Python) using naersk/crane for truly reproducible, pain-free packaging. #Nix #Flakes #Rust #LearningInPublic

Nix Flakifying a Native Rust A...

Vivekanandan KS :nixos:vivekanandanks@mstdn.social
2025-10-26

@rriemann

Nix flakes not recommended because it's mentioned experimental in certain nix areas?🙄
U got mislead by these.
Also u don't need flakes to build the contianer image, flakes makes it much more easier and organized than channels.

And it doesn't replace podman/docker itself. It replaces the image builds only, still the runtime etc u can use podman, docker or anything.
Nix is an awesome build system leveraging a lot of tools under it.
#nix #docker #podman #container #OCI #flakes

Sandro :nixos: :verified_gay:sandro@c3d2.social
2025-10-19

I was just researching how to use sops as a source for user passwords.

After starting to basically implement `sops.secrets.<name>.neededForUsers` I found the option.

#RTFM

search.nĂŒschtos.de/?query=sops

#nixos #sops #flakes #nix

charlotte (aka halva)halva@mk.absturztau.be
2025-10-15

hey nix people am i stupid or what

#nix #nixos #flakes

[...]
        buildInputs = with pkgs; [
          sdl3
          clang-tools
          libGL
          libGLU
          glew
        ];
        
        nativeBuildInputs = with pkgs; [
          cmake
          pkg-config
          stdenv-linux
        ];
      in
      {
        devShells.default = pkgs.mkShell {
          inherit buildInputs nativeBuildInputs;

[...]

[halva@twinkbook:~/University/graphics/lab-1]$ nix develop
error:
       
 while evaluating an expression to select 'drvPath' on it
         at «internal»:1:552:
       
 while evaluating strict
         at «internal»:1:552:
       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'sdl3'
       at /nix/store/hc586q8vr4wqlpcs8jlvrlx89vh63rwc-source/flake.nix:15:11:
           14|         buildInputs = with pkgs; [
           15|           sdl3
             |           ^
           16|           clang-tools
Vivekanandan KS :nixos:vivekanandanks@mstdn.social
2025-09-30

@monkeydom
For flakes and nix v2 the equivalent conmand is
nix shell nixpkgs#someappname
and nixpkgs can be like these

```
nixpkgs
nixpkgs/nixos-unstable
nixpkgs/nixos-25.11
github:username/repo
```
etc
#nix #nixpkgs #nixshell #ephemeral #flakes

2025-09-24

Does anyone have a recommendation for a hardware build and flake for a powerful server type machine (e.g. headless, with remote KVM built in or via dongle) that allows my lower/under powered nixos-driven machines at home to use via LAN as an external build computer when they update and build their configuration? Thanks ! #NixOS #nixosconfiguration #flakes #homelab #remotebuilds

Alejandro Baezzeab@fosstodon.org
2025-09-11

Honestly I forgot determinate #nix installer had an option for upstream. 😅 Upstream is still good, but the soft fork is better. Especially if you like #flakes. 😎

determinate.systems/blog/insta

2025-09-07

@rozodru glad that you were able to fix it! In my angel experience I’ve learnt more about and reading the (definitely lacking) documentation, going through other people’s configurations on GitHub and messing around with it myself than any slop an LLM gave me.

Finally switching my #NixOS server configuration to use nix #flakes. Also I'm installing #sops and nix-sops to handle secrets properly encrypted. It's long overdue.

2025-08-30

I am finding it curiously difficult to find information on configuring software (eg nginx) installed via #nix #flakes, when not running nixos , and using #debian underneath.
I don't know if it's unsupported, uncommon enough to be badly documented, I am just failing at searching, or (just as likely) I am failing at comprehension when I do find a resource.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst