Commit graph

1057 commits

Author SHA1 Message Date
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
Daniel Siepmann f4c7cbead1
Add yt-dlp
Used to download videos from mediatheks, e.g. for traveling in train.
2022-02-07 12:25:38 +01:00
Daniel Siepmann 305a4089b5
Fix broken phpactor configuration option
The option itself contains a dot. Therefore wrap in double quotes.
2022-02-07 11:04:36 +01:00
Daniel Siepmann 940690646b
Migrate cmus configuration
This is now also maintained here.
It no longer starts with class and can't be detected by i3.
2022-02-07 10:19:04 +01:00
Daniel Siepmann 72e61bb85c
Update readme
Add info regarding modules folder.
Remove info about no longer existing systemd folder.
Remove solved todo.
2022-02-07 09:46:39 +01:00
Daniel Siepmann b140b4b559
Migrate tig configuration 2022-02-07 09:43:48 +01:00
Daniel Siepmann d4c7a04a14
Migrate phpactor configuration 2022-02-07 09:41:26 +01:00
Daniel Siepmann 594163f30a
Add todo for local dev (nix flake, shell, develop) 2022-02-07 09:20:28 +01:00
Daniel Siepmann 65c870484a
Adjust litecli configuration 2022-02-07 09:11:01 +01:00
Daniel Siepmann de7506d368
Migrate litecli configuration 2022-02-07 09:10:09 +01:00
Daniel Siepmann 1073beb30d
Migrate i3 configuration
Still manage i3 tools with apt (Ubuntu), see i3lock issue.

Also migrate existing `.config/` file to use `xdg.configFile` instead.
2022-02-07 08:45:08 +01:00
Daniel Siepmann 166f1cfae5
Update todos
i3lock is probably broken as not whole X system is managed by
home-manager yet. It was removed and todo moved to "end".

languagetool was migrated to module. No PR was created yet
2022-02-07 08:22:30 +01:00
Daniel Siepmann 30015279ba
Document desktop entries for now
Do not create desktop item in file system, instead use proper xdg
configuration option. That way we do not need to hard code location of
file and can use a proper set with validation from module.
2022-02-07 08:03:43 +01:00
Daniel Siepmann 77f3038cde
Migrate languagetool setup to nix module
Define new module which provides the systemd service.
Do not clutter home.nix and do not use custom systemd/ folder.
2022-02-03 15:14:00 +01:00
Daniel Siepmann a3087e4259
Fix wrong sorting direction in htop 2022-02-03 14:47:12 +01:00
Daniel Siepmann c41a367660
Add cmus as own module with desktop file (not linked out of box) 2022-02-03 14:34:32 +01:00
Daniel Siepmann 114d72cd23
Add todo for mailhog migration 2022-02-03 13:05:06 +01:00
Daniel Siepmann eb7b372ca6
Adjust sorting of packages
Group related packages.
2022-02-03 13:04:35 +01:00
Daniel Siepmann b4fa234705
Remove i3lock-color
Seems to be not working (login auth does not work).
Probably because build against nix pam and does not know my password?
2022-02-03 12:51:54 +01:00
Daniel Siepmann ea1d4136ca
Allow navigation and resize via vim keys (hjkl) 2022-02-03 12:37:53 +01:00
Daniel Siepmann 79d32d8a21
Improve cleanup after updating 2022-02-03 09:46:30 +01:00
Daniel Siepmann 446f7fdf0e
Migrate manually installed robo3t to home-manager
The tool wasn't available via apt and was manually installed beforehand.
2022-02-03 09:46:08 +01:00
Daniel Siepmann 4ecb26bfed
Cleanup folder structure for services, systemd and configurations 2022-02-03 09:12:36 +01:00
Daniel Siepmann 654e91ab8b
Migrate tmux setup to home-manager 2022-02-03 09:10:22 +01:00
Daniel Siepmann d66d1e2539
Add todo: switch to stable channels 2022-02-03 08:18:23 +01:00
Daniel Siepmann 459169b9b8
Migrate htop configuration to home-manager
There is a module for htop, so use that one instead of home.file.
The cool thing is: It has "constants" for some strange integer values.
So nix version is actually readable while the generated config is
strange.

That's a cool pro of nix files.
2022-02-02 22:53:03 +01:00
Daniel Siepmann dc612f584e
Add todos
In order to not forget and have something at hand.
Maybe others read them and provide further ideas which I can built on.
2022-02-02 22:35:28 +01:00
Daniel Siepmann 12e5103903
Migrate silver-searcher setup to home-manager
Yeah the agignore is not that cool, but that's what I had.
Needs some polishing in future.
2022-02-02 22:25:13 +01:00
Daniel Siepmann e8e076d85f
Migrate universal-ctags setup to home-manager
As we add more and more files, move to set with curly braces.
Maybe home-files is a better approach, but not documented and I don't
understand it to well yet. I guess I've to create a derivation which
"builds" all the files. Maybe to complicated right now.

Might also make sense to build modules for such tools in future where I
can configure within nix, just like git.nix, and it will generate the
config. Might be cool for some things where configs might change, but
the actual things to configure might not. The generation of the file can
change within nix, while configuration within nix stays the same?! ;)
2022-02-02 22:19:55 +01:00
Daniel Siepmann 6a67e5df5d
Migrate git setup to home-manager
This was previously done through custom dotfiles.
2022-02-02 21:50:24 +01:00
Daniel Siepmann 1d843a2b68
Initially add .myclirc file 2022-02-02 21:02:07 +01:00
Daniel Siepmann a02f8c3341
Make languageserver service configurable
Do not hard code all values, instead configure them within home.nix.

This is more for learning purposes.
But port and allow might also be changed more frequently in general.
2022-02-02 20:38:24 +01:00
Daniel Siepmann 5b74f60eaf
Start collecting helpful sources regarding nix within readme 2022-02-02 20:27:47 +01:00
Daniel Siepmann d0ed878cd0
Move last package from nix-env to home-manager (cacert) 2022-02-02 20:27:26 +01:00
Daniel Siepmann fdbb403bce
Add systemd service for languagetool
home-manager doesn't provide a systemd service itself.
That's why we build one ourself.

That also revealed a change in our directory structure.
The structure is now documented within readme.
2022-02-02 18:17:06 +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 0321298fe4
Reflect home-manager in readme top headline 2022-02-02 17:42:39 +01:00
Daniel Siepmann 11912bef9a
Maintain nix itself with home-manager 2022-02-02 17:41:59 +01:00
Daniel Siepmann b096d6b0db
Move service configuration to separate file
Do not clutter home.nix with endless configurations.
Instead move configuration per derivation to its own file and import.
2022-02-02 17:24:49 +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 e311c072f3
Install first package via new home-manager
Step by step, test things before doing a huge shift.
2022-02-02 15:51:20 +01:00
Daniel Siepmann b66912985d
Install home-manager
See: https://nix-community.github.io/home-manager/index.html

I'll migrate existing `my-packages` to this tool.
2022-02-02 15:50:53 +01:00
Daniel Siepmann 0cdae8e80f
Install mycli 2022-02-02 08:55:02 +01:00
Daniel Siepmann 6a912fe0d1
Make disclaimer more prominent 2022-02-01 18:31:35 +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 5cfffce1f0
Add readme
In order to document the contents of the folder.
How to install and run daily tasks like updating.

Also might increase in future to include further info.
2022-02-01 17:24:24 +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