What I learned while working on this repo
-
If a command in a
Dockerfile
expects a string as a parameter, it should look like["bash", "-c" "command" ]
-
Sometimes, Firefox refuses to connect to a
Docker
container. In this case, one needs to open a new tab -
VSCodium can't execute a command line
nix
if there is a dir callednix
- src. That's why, I creatednix-files
directories -
Environment variables aren't supported by
CMD
inexec
mode - src -
One can bring any packages from
nixpkgs
into shell (provided there already is bashInteractive), e.g.nix shell nixpkgs#poetry
-
It's possible to specify a
build
script fordream2nix
's package like this
dream2nix.lib.makeFlakeOutputs {
systems = [ system ];
config.projectRoot = ./.;
source = gitignore.lib.gitignoreSource ./.;
settings = [
{
subsystemInfo.nodejs = 16;
}
];
packageOverrides = {
app_purescript = {
"build" = {
buildScript = ''
PATH=${myTools.purs-0_15_4}/bin:$PATH
${myTools.spago}/bin/spago bundle-app --to dist/index.js --minify
'';
};
};
};
-
Interactive diagrams of
/nix/store
- nix-du -
can't un-ignore a file if its parent dir is ignored
.gitignore
- SO -
Get branch from
upstream
into fork - src
- Tutorials and Notes (also on Nix)
- flakes - library-monorepo with nix my flakes
- vscodium-extensions
-
Pure Nix builds for:
-
app_purescript
- via spago.nix -
app_python
- via poetry2nix
-
-
Additional tasks.
-
Docker
: remove dangling images - src - Lint files
-
-
desc
- use this nix evalnix eval nix#checks.x86_64-linux --apply builtins.attrNames
- If write 2 roles with
vars
in a step, they will both run. Example - 2 docker containers - If playbooks are in two separate steps, only 1 of them will run