How to manage secrets in NixOS using sops-nix

Learn how to manage the secrets of your NixOS configurations with sops-nix, an atomic, declarative, and easily reproducible module based on sops.

06-2-2024 7 min 1330 words Antonio José Masiá

Nestjs dev environment using Nix

Learn how to generate a scalable and reproducible development environment for Nestjs using Nix flakes

01-2-2024 4 min 836 words Antonio José Masiá

A NixOS emergency

Background This afternoon, while doing some cleaning on my work computer, I noticed that I was running low on space in the system partition. One of the advantages of NixOS is that every time you make changes to the configuration, dependencies are kept linked so you can revert to them as needed. However, I accidentally deleted all the system’s bootloader files that point to each of these generations. My intention was only to keep the latest one, but I ended up deleting them all....

06-11-2022 3 min 578 words Antonio José Masiá

Practical javascript: reduce method

According to the official documentation from Mozilla, the reduce() method executes a reducer function on each of the elements of an array, returning a single value as a result. array.reduce(callback(accumulator, currentValue, [index], [array]), [initValue]) This method must receive as a mandatory parameter the reducer function callback and optionally can receive an initial value. In turn, the reducer function must mandatorily receive an accumulator and the current iteration value, and as optional values, the iteration index and the array on which the reduce() method was called....

19-11-2019 4 min 760 words Antonio José Masiá