Commit graph

995 commits

Author SHA1 Message Date
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
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 a00f45ba95
Revert "Follow manual to build environment"
It does not apply overlays for dmenu and st, so stick to stackoverflow
solution for now.

This reverts commit 5308239b9a.
2022-01-31 13:22:01 +01:00
Daniel Siepmann 5308239b9a
Follow manual to build environment
Use config.nix and documented approach instead of stackoverflow approach
2022-01-31 13:10:11 +01:00
Daniel Siepmann caadcbba78
Provide a custom derivation as "configuration"
This allows to have a list the current installed set of derivations.
Instead of using nix-env like apt.

Use `nix-env -i -f configuration.nix` to install this derivation.
It will then install defined "packages".

This eases to maintain current system and port to NixOS or something
else in the future.
2022-01-31 12:48:17 +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