Commit graph

71 commits

Author SHA1 Message Date
Daniel Siepmann 4c095733d7
Remove node-version switcher script
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.
2022-02-09 21:16:13 +01:00
Daniel Siepmann 0e29711001
Cleanup system script 2022-02-09 19:01:46 +01:00
Daniel Siepmann 02da8f3a62
Lock system before suspending
Otherwise it will not be locked when recovering from suspend.
2022-02-09 17:07:40 +01:00
Daniel Siepmann 70d6699c85
Document mytop dependencies for further tries 2022-02-09 09:29:30 +01:00
Daniel Siepmann 9de6cdb3eb
Migrate custom dmenu scripts to writeShellApplication
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.
2022-02-08 21:45:11 +01:00
Daniel Siepmann d00eb968a4
Add none working mytop
Installation / compilation works, but execution is broken.
See comment within the default.nix file.
2022-02-08 20:22:30 +01:00
Daniel Siepmann 00b8f205e4
Add rst2pdf
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);
2022-02-08 20:00:11 +01:00
Daniel Siepmann 5c24513c6b
Use dontUnpack instead of setting unpackPhase to true
This feels way better. We tell the build do skip the stage.
We executed "true" beforehand within the stage.
2022-02-08 16:13:33 +01:00
Daniel Siepmann 345b5e87a5
Do not print out debug info when building custom-customer-project 2022-02-08 16:03:19 +01:00
Daniel Siepmann 4ce3dfec4a
Migrate existing customerProject bash script
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.
2022-02-08 15:40:16 +01:00
Daniel Siepmann fdde37afd7
Migrate custom dmenu selection
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.
2022-02-08 13:56:15 +01:00
Daniel Siepmann 74d9ba47c7
Remove overlay of dunst
This is no more needed.
Configuration and service are now maintained via home-manager.
2022-02-02 17:55:04 +01:00
Daniel Siepmann 749785f9f4
Replace my-packages with home-manager
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.
2022-02-02 17:21:27 +01:00
Daniel Siepmann 0cdae8e80f
Install mycli 2022-02-02 08:55:02 +01:00
Daniel Siepmann e16a01f3ac
Add dunst configuration via patch
Add a patch to alter the delivered configuration to my needs (e.g. color
scheme).

Also document configuration process in readme.
2022-02-01 18:25:43 +01:00
Daniel Siepmann 1f2b324435
Extend nixpkgs dunst systemd service
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.
2022-02-01 17:56:44 +01:00
Daniel Siepmann f4ed3f064f
Install languagetool (with todos / questions)
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.
2022-02-01 16:18:30 +01:00
Daniel Siepmann d011e4db3e
Convert nix package list to own overlay
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
2022-01-31 16:40:44 +01:00
Daniel Siepmann 29f64f8c21
Do not make overlay unnecessary complex
It actually is not necessary to use overrideAttrs as dmenu and st both
expose "patches" attribute which can easily be overridden.

Maybe it was necessary back then, as dmenu already had a patch as
fallback: 4b610d814e/pkgs/applications/misc/dmenu/default.nix (L1)

See: https://mamot.fr/@Thib/107716798899455762
2022-01-31 12:27:07 +01:00
Daniel Siepmann 4f7b9e6483
Add overlay for st
Configure my own color scheme.
Configure preferred word delimiters.
2022-01-31 12:03:10 +01:00
Daniel Siepmann 29d43dceba
Add overlay for dmenu
Configure my own color scheme.
2022-01-31 12:02:07 +01:00