My host does no longer provide any node or npm or yarn.
Project are partially migrated to shell.nix already.
I still need to migrate all projects. But I'm not working to much on
frontend and don't need to re compile assets to often, so no worries.
Some stuff will not work anymore, e.g. coc within neovim needs nodejs.
That's broken for now, but I don't care to much, not sure whether I used
it at all.
That will be part of neovim migration to home-manager / nix.
No longer have all of them as files and apply sed.
Instead define dependencies via nix expression.
Also allow to write the scripts within nix expression.
Some are still large and separate .sh files, but loaded within
expression.
Also only the main file is exposed as others are only dependencies.
Still all can now be installed as all are separate derivations.
The new writeShellApplication also executes shellcheck as another
benefit. And it makes script executable.
Does not exist yet, add own derivation via overlay.
Exclude tests for documented reasons.
Fix broken indentation in readme.rst
(used as test case for installed rst2pdf);
This scripts is run from shell and created my development environment
(IDE) within a new tmux session.
Don't expect documentation. It was written only for myself.
This is grown and contains fallbacks to old conventions.
Add my very first own derivation (via overlay).
Use existing scripts for dmenu.
"Build" result for nix out of the scripts,
e.g. replace references to nix dependencies.
Create proper output so nix can move it to proper places.
Move all packages to home.nix and remove `my-packages` derivate.
Also define dunst service and remove readme entry related to
configuration and services. Those are now maintained via home-manager.
The "update" section in readme got updated to reflect new home-manager.
The service can not be enabled, as it doesn't contain the ``[Install]``.
The overlay patches that two lines to the service.
That's to my current knowledge.
Right now I've a custom service in
~/.config/systemd/user/languagetool-server.service:
[Unit]
Description=LanguateTool Server
StartLimitBurst=3
StartLimitInterval=400
[Service]
Restart=on-failure
RestartSec=2s
; This should work, but doesn't seem to work: https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
; Maybe due to legacy control group hierarchy version 1?
; MemoryMax=3%
Environment="JAVA_TOOL_OPTIONS=-Xmx256m"
ExecStart=/home/daniels/.nix-profile/bin/languagetool-http-server --port 8081 --allow-origin "*"
[Install]
WantedBy=default.target
Unsure how I can generate the service file.
That should be more modern then the manual entry.
It actually allows to reference the "current" package states, e.g. from
other overlays with applied patches.
Installation is now not different from any other derivation:
nix-env -i my-packages
Follow Thibaut advice, see: https://mamot.fr/@Thib/107717286778025122
and following posts