@weston
1st: https://youtu.be/JCeYq72Sko0
2nd: https://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 !!!

![[...]
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](https://files.mastodon.social/cache/media_attachments/files/115/379/868/886/958/832/small/1b67bca6775ead8d.png)