Commit graph

329 commits

Author SHA1 Message Date
Daniel Siepmann d0287c7d5b
Add geckodriver
In order to run acceptance tests with firefox locally
Remove no longer to dos
2022-03-10 17:19:10 +01:00
Daniel Siepmann c8df55880c
Add firefox
Previously installed via apt
2022-03-10 17:15:56 +01:00
Daniel Siepmann 592fe1e87e
Add thunderbird
Previously installed via apt
2022-03-10 14:17:35 +01:00
Daniel Siepmann 152e540dc1
Remove unused option to use xxdiff from git
I never used that feature, I always use less as pager and CLI context
for diffing.
2022-03-10 13:36:51 +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 9a5ddfda91
Add bc (terminal calculator) 2022-03-09 13:26:56 +01:00
Daniel Siepmann f901607929
Export screen instead of tmux as terminal env var 2022-03-09 10:50:34 +01:00
Daniel Siepmann be4bfa9bac
Add note to all tmux key bindings
This allows to see an info when listing all bindings.
See: https://github.com/nix-community/home-manager/issues/2540
2022-03-09 09:37:40 +01:00
Daniel Siepmann a62b3053a1
Fix broken LS_COLORS
A comment was part of the configuration.
The comment didn't make sense anyway and got removed to fix broken
coloring.
2022-03-07 09:22:06 +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 f9960b8e61
Add espeak
As it sometimes is helpful to hear text. E.g. on notifications.
2022-02-23 14:54:48 +01:00
Daniel Siepmann a0832b3767
Add new Git alias
I use cherry-picks in one project and am to lazy to always wait for
auto completion.
2022-02-23 13:54:57 +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 00320b8a48
Use my own git diff setup
That one includes local base and remote at top.
It turns diffthis off for the merged result to have proper code
highlighting of result.
2022-02-21 13:39:22 +01:00
Daniel Siepmann fd8a22c0f9
Add export of TYPO3_DATABASE to zsh history 2022-02-21 13:23:23 +01:00
Daniel Siepmann a4678d6a8c
Add mutagen (mid3v2 cli tool) 2022-02-21 08:32:11 +01:00
Daniel Siepmann 0f1959978b
Migrate JQ to use home-manager module 2022-02-14 16:06:43 +01:00
Daniel Siepmann 983fcb8b76
Add composer v2
Add own flake in order to update without caring to much about nix
releases.
2022-02-14 15:12:02 +01:00
Daniel Siepmann 9aa3886c96
Make composer version obvious 2022-02-14 14:39:10 +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 51fbae7d71
Move user / system specifics to .profile file instead of .zshrc
This ensures it is properly set on login.
Tools like dmenu and such are properly find when installed by nix.
This was not zsh specific anyway.
2022-02-11 11:35:34 +01:00
Daniel Siepmann a62943d0bb
Configure registry for customer projects
I created a private repository within `registries/customer-projects`.
This holds flakes.
The folder is registered as registry.

That allows to run the following from within a customer project:

    nix run cp\#reuter-phpstan

In order to execute the customer specific application from flake.
2022-02-11 10:03:01 +01:00
Daniel Siepmann e17ea91263
Remove grep alias
grep should behave as expected.
There is no official none deprecated way.
2022-02-11 08:48:38 +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 bf40d77b92
Optimize update command
Use new nix store gc.
Also optimise file system usage by optimising -> converting duplicates
to hardlinks.
2022-02-10 21:34:32 +01:00
Daniel Siepmann 1902f4f66d
Add flake for composer v1
Still needed for a single legacy project.
Copied content from nixpkgs composer file and adopted for flake and v1.
2022-02-10 21:19:10 +01:00
Daniel Siepmann 593a1ad7e2
Make use of cachix in order to fetch pre compiled phpcs packages
The phps used via flake for local development of legacy projects
distributed pre build packages via cachix.

Install cachix and add configuration to allow fetching of pre compiled
packages.
2022-02-10 20:38:16 +01:00
Daniel Siepmann de06dbcd13
Add first basic flake to be used as flake.nix in projects
The flake is very basic and encapsulates frontend compilation via node
for customer projects.
The flake is intended to be used by other flake.nix within the projects,
which will use the defined packages to build apps outputs.
They should use the packages like `writeShellApplication` itself,
call it with necessary argument set in order to receive a
out of the box working solution.

A template is also provided which can be used like:

    nix flake init -t <path to this flake>

`defaultTemplate` is defined in output and will be used.
2022-02-10 20:18:32 +01:00
Daniel Siepmann 2ba1a01f2c
Migrate borg excludes and installation 2022-02-10 16:19:28 +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 499067899f
Add note about rnix-lsp for autocompletion in neovim
Doesn't work yet for my setup, don't know why.
Still leave it here as a reminder, so I don't need to search again.
2022-02-09 19:42:21 +01:00
Daniel Siepmann 27a088f89e
Migrate readme from rst to md
I prefer restructured text, but Gitea has no out of the box support.
So switch to markdown as there is more or less no difference anyway,
for such a simple file.

One big downside: There is no definition list.
2022-02-09 19:12:00 +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 9843b87689
Update todos 2022-02-09 09:34:22 +01:00
Daniel Siepmann cb18f797f0
Remove todo
All missing tools are already within readme, no need for general todo
anymore.
2022-02-09 09:33:24 +01:00
Daniel Siepmann 3f93014fe9
Remove unnecessary todo
nix already adds autocompletion out of the box.
2022-02-09 09:32:21 +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 9b435f36c9
Migrate next-cloud environments to list
Thanks to https://framapiaf.org/@julm/107764071641134635 for posting the
suggestion.

This should allow me to remove the first entry, as soon as update
migrates from string to list, which I can suggest via PR.
2022-02-08 20:42:54 +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 f12bfc8974
Migrate nextcloud client 2022-02-08 19:17:44 +01:00
Daniel Siepmann 3df79e2767
Add concrete tool todos 2022-02-08 18:47:15 +01:00
Daniel Siepmann b758d564ed
Fix broken tmux default shell
I don't understand the issue, I thought tmux would inspect env $SHELL.
Looks like it doesn't and use sh instead.
So we configure to use zsh instead.
2022-02-08 17:46:08 +01:00