Contacts
I am a web developer, working with text editors since the early 2010s.
I am currently located in Vienna, Austria.
Find me on libera.chat and oftc as carloratm.
Toy projects
Game of 100 Website Source code
Game of 100 is a puzzle game to play while bored.
- Elm
- HTML
- CSS
Umbra Website Source code
Umbra is a multi box-shadow generator.
- Elm
- HTML
- CSS
Murder She Wrote Killers Website Source code
Finally a website that spoils every Murder She Wrote episodes killer.
- Elixir (Phoenix LiveView)
- HTML
- CSS
Lazy Speaker Slides Website Source code
Create presentations in seconds using a markdown syntax.
- Elm
- HTML
- CSS
Reanimact Website Source code
A game where you have to align 3 or more hippos of the same color.
- React
- HTML
- CSS
Vuestermind Website Source code
A vue implementation of the board game Master Mind
- Vue
- HTML
- CSS
Notes on Nix Flakes
What’s a flake?
In practice, a Nix flake is a directory with a flake.nix and flake.lock.
Flakes take inputs and output things that Nix can use, like package definitions, development environments, or NixOS configurations.
Flake reference
You can reference a flake using a string.
The reference is used when the flake is an input to other flakes, or
as command arguments to commands like nix run
,
nix flake show
, nix build
ecc…
Some reference examples are:
path:/home/nix-stuff/my-flake
for a flake on the local machinegithub:Organization/a_repo
a git repositorygithub:Organization/a_repo/a_branch
a git branchgithub:Organization/a_repo/d51c83a
a git commit
And more…
Flake registries
Flake registries are kind of aliases to references.
The most common ones are:
nixpkgs
which refers togithub:NixOS/nixpkgs/nixpkgs-unstable
flake-utils
which refers togithub:numtide/flake-utils
flake.nix structure
{
description = package description
inputs = dependencies
outputs = what the flake produces
nixConfig = advanced configuration options
}
inputs
The inputs set specifies which inputs are needed to build the flake, with this syntax:
inputs = {
nixpkgs = {url = "github:NixOS/nixpkgs"};
flake-utils = {url = "github:numtide/flake-utils"};
<name_of_input> = <flake_reference>
};