Commit graph

104 commits

Author SHA1 Message Date
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
Daniel Siepmann ce41d98ba3
Add keepassxs community version 2022-02-08 17:27:07 +01:00
Daniel Siepmann 2223bf9fa4
Add sqlite 2022-02-08 17:16:47 +01:00
Daniel Siepmann 75512b8ffe
Add kcachegrind 2022-02-08 17:14:19 +01:00
Daniel Siepmann 8a7f1e40eb
Add yamllint 2022-02-08 17:09:57 +01:00
Daniel Siepmann bbf1e1f7a1
Add wget 2022-02-08 17:09:39 +01:00
Daniel Siepmann 26adfba1ad
Add tree 2022-02-08 17:06:47 +01:00
Daniel Siepmann 1664a07001
Add sound-juicer 2022-02-08 16:57:19 +01:00
Daniel Siepmann 6617b177f8
Add ncdu 2022-02-08 16:38:29 +01:00
Daniel Siepmann 29e8aa74e1
Add further todos 2022-02-08 16:35:21 +01:00
Daniel Siepmann ad62182595
Add ffmpeg 2022-02-08 16:27:51 +01:00
Daniel Siepmann 04bee5c7ff
Add curl 2022-02-08 16:25:23 +01:00
Daniel Siepmann 3856316572
Add audacity
The configuration seems shitty, much like it is auto updated by the
tool, so not put into this repo for now.
2022-02-08 16:21:35 +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 1e972ba215
Migrate Signal and Mattermost for communication 2022-02-08 16:11:39 +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 953922fc5c
Add jq tool to work with json on command line 2022-02-08 12:50:43 +01:00
Daniel Siepmann deb54a1183
Update todos 2022-02-08 08:52:02 +01:00
Daniel Siepmann 329032aa5a
Add desktop entry for networkmanager_dmenu 2022-02-08 07:54:27 +01:00
Daniel Siepmann f26bda4321
Add networkmanager_dmenu
This was previously locally installed from repo and called with system
python3.

Can now be started as "application" which will use the installed
(patched) dmenu.
2022-02-07 21:17:32 +01:00
Daniel Siepmann bb7203bf12
Allow experimental nix commands like flake 2022-02-07 21:11:25 +01:00
Daniel Siepmann 12be4eb1d3
Fix broken path to SHELL
The shell actually is within /bin/zsh instead.
2022-02-07 21:10:25 +01:00
Daniel Siepmann c372dacc8c
Migrate mailhog
Install via nix package.
Also configure with custom module, inspired by nix os module.
Bind hard to localhost, do not listen to outer world.
2022-02-07 19:26:50 +01:00
Daniel Siepmann 2ab2fb414a
Migrate zsh configuration
Use zsh with old configuration.
Ensure i3 will start st terminal with zsh from path (nix / home-manager)
instead of system shell (zsh by Ubuntu).
2022-02-07 14:07:31 +01:00