Commit graph

43 commits

Author SHA1 Message Date
Daniel Siepmann bfb5e08460
Move custom packages out of overlays
No need for overlays.
Instead create own packages and call them via callPackage.
That will keep them simpler and allows dependency injection.
I can follow existing patterns from nixpkgs, etc.
2022-05-24 18:50:10 +02:00
Daniel Siepmann 14cc26c829
Migrate borg backup to proper shell script installed via nix 2022-05-24 18:24:40 +02:00
Daniel Siepmann 57b00d7852
Fix mcfly color of duration 2022-05-24 16:45:10 +02:00
Daniel Siepmann 3110d19453
Replace zsh history search with mcfly
Let's see whether I keep this setup.
2022-05-23 18:45:50 +02:00
Daniel Siepmann 9e801efd12
Integrate nix-index
This is a try, not sure if I need it, it probably will increase consumed
time by update procedure.
2022-05-22 19:13:53 +02:00
Daniel Siepmann 9ff384f839
Remove PHP 7.0 and 7.1
As I've removed them from ubuntu.
No more projects using those versions.
2022-05-19 07:43:32 +02:00
Daniel Siepmann 3b6e9cfe01
Add custom script to push etckeeper state
I'm still on Ubuntu and use etckeeper to track changes to /etc.
This small script will push it to my own Gitea instance as a backup and
online history in case I need it.
2022-05-15 21:40:35 +02:00
Daniel Siepmann c5b648ca19
Improve word delimiter for terminal 2022-04-28 12:54:58 +02:00
Daniel Siepmann df46cb05ed
Cleanup nix flakes + shells
Remove flakes for now.
I will use shells for now to not have a mixed setup.
Add composer v1 for a single customer project as overlay due to usage in
shell instead of flakes.

Adjust folder to not have unnecessary deep structure.

Add shell for reuter monorepo using composer v1.
2022-04-14 15:46:49 +02:00
Daniel Siepmann 9f42237e25
Add screen recording "setup"
Change i3 config to match current hardware setup.
Add custom dmenu script to start and stop recording.

Move internal dmenu scripts into local variables.
2022-04-01 09:40:31 +02:00
Daniel Siepmann cbe783115c
Update todo comments 2022-03-23 17:42:04 +01:00
Daniel Siepmann f745996436
Improve customer-project tmux starter script
Do not add whitespace before exports. Let them be saved to zsh history.
This allows to search them and execute them in other splits more easily.

Remove dead unused code, e.g. testing database, which I didn't use for a
while.
2022-03-09 13:28:16 +01:00
Daniel Siepmann f678e68bd3
Remove the testing database from tmux customer project script
I didn't use it anyway and it just bloated the code and was always
irritating to show up in bootstrapped setup.
2022-03-07 07:18:52 +01:00
Daniel Siepmann 6bf3dd88c4
Remove runtime inputs for system update script
In order to use from actual path, prevent issues with broken versions.
The script was linked against an 2021 version of home-manager which was
incompatible with current unstable nixpkgs.
That prevented updates.

There is now no concrete version, but it will use the once from current
PATH.
This allows to use the latest "current" version as defined by system.
2022-03-07 07:17:32 +01:00
Daniel Siepmann 972475915e
Add │ as worddelimiter for st terminal
As I use tmux and │ is used to separate panes.
That eases to copy something from inside a pane which has contact to the
separator.
2022-02-21 14:19:17 +01:00
Daniel Siepmann fd8a22c0f9
Add export of TYPO3_DATABASE to zsh history 2022-02-21 13:23:23 +01:00
Daniel Siepmann 84d126bafc
Remove composer version switcher
Composer is no longer globally installed.
Instead it is part of nix shell.
2022-02-14 14:21:49 +01:00
Daniel Siepmann 06c64134cf
Small improvements
Use single `inherit` and don't add unnecessary `rec`.
2022-02-14 08:05:23 +01:00
Daniel Siepmann 000b52cced
Migrate update to own package 2022-02-14 08:05:09 +01:00
Daniel Siepmann 2cdb96acc6
Migrate TYPO3_ADDITIONAL_CONFIGURATION environment variable
This doesn't change and can be set global.
That allows nix shells to pick it up.
2022-02-14 08:03:47 +01:00
Daniel Siepmann 154b0262ab
Trim trialing whitespace 2022-02-11 08:48:35 +01:00
Daniel Siepmann 1804902632
Migrate rst2pdf to callPackage
More or less in order to have a show case and working example.
There is no huge benefit in that case.
But it demonstrates that a default.nix could call callPackage and
benefit from 1:1 copy of nixpkgs package definition.
Also eases debugging of the derivation / package.
2022-02-11 08:38:17 +01:00
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