Commit graph

398 commits

Author SHA1 Message Date
Payas Relekar
43199295ff plasma: remove elisa and oxygen 2023-08-24 14:20:58 +05:30
Payas Relekar
85dfce6c73 syncthing: Change device id for Hermes 2023-08-20 17:58:09 +05:30
Payas Relekar
54acf430c7 hermes: Make build for bare-metal
After more than a year later, I've moved back to NixOS on bare-metal.

WSL is fine and all, but it has enough warts that get really annoying,
especially as a Java developer.
2023-08-20 14:12:52 +05:30
Payas Relekar
984a6708bf syncthing fix attempt v3 2023-08-06 19:38:40 +05:30
Payas Relekar
3e7d095c34 syncthing: fix v2 2023-08-06 19:34:53 +05:30
Payas Relekar
3a54ab7581 Fix and enable Syncthing with newer options 2023-08-05 18:27:20 +05:30
Payas Relekar
7113f7b6ae fonts: Update as per upstream
I'll just say it right here. The 'fonts.fonts' thing really bugged me
when I started out with NixOS and still annoyed me after. Its nice to
see it made nicer, even if just for posterity.
2023-07-27 21:05:32 +05:30
Payas Relekar
d1b659a55f Syncthing: try to update config per new options
And also disable
2023-07-23 22:03:00 +05:30
Payas Relekar
e54d8f575a disable plausible
It fails due to clickhouse anyway, and I don't want it keeping rest of
the system from being updated
2023-07-15 14:02:02 +05:30
Payas Relekar
a68c001f0e hermes: Use direnv module from NixOS instead of home-manager 2023-07-14 22:59:15 +05:30
Payas Relekar
0eeeba1192 Clean up wiki.nix, split to outline, paperless and plausible 2023-07-08 14:08:24 +05:30
Payas Relekar
14cedb8ad0 remove radicale: Etebase is supposed to do better job 2023-07-08 13:56:27 +05:30
Payas Relekar
bc63718c16 enable plausible 2023-07-08 13:55:31 +05:30
Payas Relekar
49eba2202c Add photoprism 2023-07-07 21:17:31 +05:30
Payas Relekar
6c770123d5 hermes/wsl: Use native systemd 2023-07-04 21:48:10 +05:30
Payas Relekar
1809530f03 paperless: hotfix 2023-07-02 13:45:06 +05:30
Payas Relekar
014f58cc54 paperless: few changes 2023-07-02 13:43:03 +05:30
Payas Relekar
fbad4942fc bebop: Fix groups 2023-07-02 13:38:38 +05:30
Payas Relekar
e1f78f1b8d etebase: hotfix 2023-07-02 11:42:34 +05:30
Payas Relekar
89989a749e etebase: allow access to secret 2023-07-02 11:36:56 +05:30
Payas Relekar
932b74c84e etebase: Add secrets file 2023-07-02 11:34:08 +05:30
Payas Relekar
5152fc31ff etebase: add allowed host 2023-07-02 11:24:06 +05:30
Payas Relekar
06974db6c0 etesync-dav: replace by etebase-server 2023-07-02 11:19:08 +05:30
Payas Relekar
fd6cc80696 etesync: setup etebase 2023-07-02 11:10:03 +05:30
Payas Relekar
55b1ec5590 nginx/ledger: Fix 2023-07-02 10:58:04 +05:30
Payas Relekar
f48911fa4b Revert "hledger: temporarily disable nginx authentication"
This reverts commit f41d915677.
2023-07-02 10:56:13 +05:30
Payas Relekar
a2f3ae9cde Add payas and hledger users to same group 2023-07-02 10:09:43 +05:30
Payas Relekar
f41d915677 hledger: temporarily disable nginx authentication 2023-07-02 09:23:09 +05:30
Payas Relekar
00586c7464 hledger-web: change host IP 2023-06-29 20:07:03 +05:30
Payas Relekar
e6d55940a5 bebop: enable etesync service 2023-06-28 21:54:54 +05:30
Payas Relekar
771e6993da hledger: enable hledger-web 2023-06-28 21:54:43 +05:30
Payas Relekar
0678e47500 lldap: initial config
NOT active
2023-06-23 17:26:10 +05:30
Payas Relekar
a904cb31c6 loki: rename host to bebop 2023-06-11 11:43:10 +05:30
Payas Relekar
4cc3f7ca7e grafana: Fix nix API 2023-06-11 11:31:21 +05:30
Payas Relekar
200957e858 monitoring: Add Loki + promtail 2023-06-11 11:29:39 +05:30
Payas Relekar
c78c541dd6 grafana: declarative datasources 2023-06-11 11:29:21 +05:30
Payas Relekar
274e99a781 victoriametrics: retain for 4 years
Sounds overkill, but seeing my grafana for a year's metrics was quite
revealing. I'd like to keep that possibility
2023-06-10 18:45:10 +05:30
Payas Relekar
490350c7f9 calibre: Disable
Until I figure out how to get authentication working.
2023-06-10 18:38:39 +05:30
Payas Relekar
61887cbe42 paperless: allow bhankas.org 2023-06-10 17:16:07 +05:30
Payas Relekar
6591259b70 grafana: Disable public dashboard 2023-06-10 16:25:41 +05:30
Payas Relekar
943acadeeb calibre: disable calibre-web and redirect domain to calibre-server
Calibre-ewb, while pretty, does not come with a book reader, and so
requires to download the damn book.

That also means it does not sync my status between devices, and defeats
majority of the purpose of running the server <facepalm>. So, remove it
entirely and switch to built-in calibre-server instead.
2023-06-10 16:09:50 +05:30
Payas Relekar
5d4136c386 calibre: correct IP address 2023-06-10 15:55:05 +05:30
Payas Relekar
291262c199 calibre: minor changes 2023-06-10 15:50:00 +05:30
Payas Relekar
77a32ac107 calibre: correct library location 2023-06-10 15:43:45 +05:30
Payas Relekar
758c67ef29 grafana: enable public dashboards 2023-06-10 15:14:58 +05:30
Payas Relekar
d35692f32f grafana: change default org name 2023-06-10 15:11:59 +05:30
Payas Relekar
0a042d8fab monitoring: replace prometheus with victoriametrics
VictoriaMetrics is known to be less resource intensive compared to
prometheus.

Prometheus' node_exporter is still used to scrape data from systemd,
because it is very good, but entire Prometheus scraper and data storage
is no longer necessary. The complete Node Exporter Full dashboard is
also very nice to look at :)
2023-06-10 15:03:36 +05:30
Payas Relekar
3c9fc4014b victoriametrics: try to use prometheus node-exporter's port 2023-06-10 14:54:04 +05:30
Payas Relekar
00f1905629 grafana: enable websockets 2023-06-10 14:51:09 +05:30
Payas Relekar
17a19bf157 monitoring: multiple changes
- remove OpenWRT, systemd, influxdb and pihole configs (I'll think about
them later)
- remove telegraf
- enable prometheus + node-exporter
- grafana: update domain
2023-06-10 14:46:00 +05:30
Payas Relekar
bf84e931d1 monitoring: disable prometheus exporters 2023-06-10 14:29:56 +05:30
Payas Relekar
3b0174fb1a monitoring: initial config for victoriametrics 2023-06-10 14:26:58 +05:30
Payas Relekar
455259f5a2 outline: Remove dex
Now that SMTP is working, Dex does not serve a good purpose any longer.

It might be somehting I'll think of in future, but the complexity of
credential management for little benefit is something I'm not up for
right now.
2023-06-10 13:57:16 +05:30
Payas Relekar
330607b315 outline: correct smtp port 2023-06-10 13:45:50 +05:30
Payas Relekar
b3d9e6c9c8 outline: use correct password file 2023-06-10 13:34:12 +05:30
d433c404f8 grafana: move domain config 2023-06-10 00:03:54 +05:30
d2ee858caa outline: move config to separate module 2023-06-09 23:17:04 +05:30
a386973589 mail: add gandalf_mail 2023-06-09 23:16:37 +05:30
037fa31d60 plausible: disable 2023-06-09 22:51:29 +05:30
961cfb0214 plausible: enable 2023-06-09 22:04:45 +05:30
2c72e69b0e paperless : update config 2023-06-09 22:04:26 +05:30
dc6c34624e everywhere: Update email 2023-06-08 23:22:45 +05:30
7a93935712 bebop/navidrome: Enable websocket and move domain config 2023-06-08 22:22:18 +05:30
b52bb92173 smtp: try to reuse mu4e pass 2023-06-07 22:13:37 +05:30
3260394877 outline: Enable websocket 2023-06-07 22:12:12 +05:30
a2d561fad1 wiki: try to change ownership of outline mail key 2023-06-07 21:53:52 +05:30
31c4d1c9c3 vaultwarden: enable admin panel 2023-06-07 21:49:01 +05:30
0261b745be dex: change mock to non-obvious 2023-06-07 21:45:42 +05:30
949d828e17 fix eval 2023-06-07 21:44:11 +05:30
bbd514e548 gitea and vaultwarden: another smtp fix 2023-06-07 21:41:57 +05:30
b4d8e59a1c vaultwarden: try fix mail 2023-06-07 21:37:08 +05:30
4c9806f533 bebop: Add mail module 2023-06-07 21:33:31 +05:30
84a8d2e3df outline: update minio URL 2023-06-07 21:16:59 +05:30
a2a68ca7dc outline: initial smtp config 2023-06-07 21:11:14 +05:30
6003d79bad vaultwarden: attempt fix 2023-06-07 20:50:51 +05:30
4a39e3f77d nginx: attempt to fix header 2023-06-07 20:42:49 +05:30
41a16bdd9d nginx: try to fix config 2023-06-07 20:31:26 +05:30
430963b657 dex: try to set IP address 2023-06-07 20:16:40 +05:30
6a2af31f0d nginx: add config to set http_header 2023-06-07 20:16:22 +05:30
02c6dafa4d vaultwarden: more email setting 2023-06-05 22:04:22 +05:30
890f07de9e vaultwarden: use starttls 2023-06-05 21:50:47 +05:30
0d0c80333e vaultwarden: Add sendmail path 2023-06-05 21:41:06 +05:30
716180ca62 vaultwarden: SMTP config 2023-06-05 21:30:11 +05:30
b52d88e528 vaultwarden: enable service 2023-06-05 21:15:29 +05:30
6fd4e25ae6 vaultwarden: fix user 2023-06-05 21:11:02 +05:30
375d406a14 vaultwarden: Fix env file owner 2023-06-05 20:54:28 +05:30
9521f186ee bebop: Add vaultwarden 2023-06-05 20:37:08 +05:30
7a450cda50 outline: revert user 2023-06-05 06:55:42 +05:30
a8492331e1 outline: change user 2023-06-05 06:50:34 +05:30
a258985695 bebop: disable plausible, use gitea instead of forgejo 2023-06-05 05:49:58 +05:30
65c0c66ad3 plausible: use longer secret key base 2023-06-05 05:09:37 +05:30
f0e8835d25 calibre: correction 2023-06-05 05:03:41 +05:30
1a270fb067 nginx: fix 2023-06-05 05:02:23 +05:30
97e5a5de1d plausible: try disabling clickhouse 2023-06-05 05:01:23 +05:30
3bc643e812 calibre: books.bhankas.org 2023-06-05 04:40:10 +05:30
27da96a552 grafana: try to fix origin 2023-06-05 04:35:20 +05:30
45d61c26ae plausible: add release cookie path 2023-06-05 04:13:24 +05:30
34814ef7c8 plausible: add admin email 2023-06-05 04:09:12 +05:30
2b7190ac7c plausible: fix 2023-06-05 04:07:45 +05:30
34715c32b2 paperless: whitespace changes 2023-06-05 04:05:25 +05:30
292e77b265 plausible: add and enable at analytics.bhankas.org 2023-06-05 04:05:12 +05:30
931678140b grafana: another attempt to fix anonymous auth 2023-06-05 03:51:42 +05:30
b92dfe4f30 radicale: replace xandikos with radicale 2023-06-05 03:38:15 +05:30
87f9692664 xandikos: fix port 2023-06-05 03:25:12 +05:30
a67c72579c xandikos: Add and enable 2023-06-05 03:23:26 +05:30
0ae5726697 grafana: another attempt at anonymous login 2023-06-05 03:10:47 +05:30
511da815a3 Revert "grafana: Allow anonymous auth"
This reverts commit 2faa1f0c7a.
2023-06-05 03:04:09 +05:30
66341a4fda Revert "grafana: allow anonymous viewer"
This reverts commit bf7142cf37.
2023-06-05 03:04:07 +05:30
bf7142cf37 grafana: allow anonymous viewer 2023-06-05 03:03:06 +05:30
2faa1f0c7a grafana: Allow anonymous auth 2023-06-05 02:53:23 +05:30
6534bb35fb paperless: fix admin 2023-06-05 02:49:57 +05:30
714147e190 paperless: trust localhost 2023-06-05 02:39:37 +05:30
07c7fd4ca9 paperless: Fix CSRF origin 2023-06-05 02:36:20 +05:30
12332f3977 fix paperless 2023-06-05 02:30:25 +05:30
bbddedd05d dex: fix issuer address 2023-06-05 02:20:54 +05:30
a9896167b3 outline: correct port and public URL 2023-06-05 02:14:36 +05:30
2a04d3330c wiki: Enable paperless, outline and dex with nginx 2023-06-05 02:07:20 +05:30
e1da4d958a nginx: different virtualHosts for different services 2023-06-05 01:55:41 +05:30
46340648b4 nginx: add priorities to paths
Hopefully this will fix single service issue
2023-06-05 01:24:43 +05:30
0f31b131e1 nginx: make root point to nginx 2023-06-05 01:09:10 +05:30
054dc49066 nginx: reset root to grafana
Turns out root is needed, and it MUST point to the same host somewhere.

Man this is tricky.
2023-06-05 01:01:33 +05:30
336d7ba735 nginx: remove root 2023-06-05 00:58:30 +05:30
ab62e65332 Revert "nginx: point root to grafana for now"
This reverts commit ba567ddbb9.
2023-06-05 00:53:41 +05:30
ba567ddbb9 nginx: point root to grafana for now 2023-06-05 00:52:56 +05:30
7779b33cc9 nginx: redirect root instead of proxying 2023-06-05 00:49:50 +05:30
7d948ce2ad nginx: add grafana, move navidrome and set root to blog 2023-06-05 00:39:17 +05:30
1f44073a5d wiki: remove dnsProvider 2023-06-05 00:08:19 +05:30
1e1aa22770 nginx: remove forceSSL 2023-06-05 00:07:13 +05:30
a943491fad wiki: correct typo 2023-06-05 00:06:28 +05:30
e0983c5690 wiki: remove certbot
It is no longer present in NixOS modules
2023-06-05 00:04:54 +05:30
27a6445dee wiki: Multiple changes
- Enable acme
- Enable certbot with bare settings
- add and force SSL for bebop subdomain
- enable acme for subdomain
- move music to root for now (to make sure it works)
2023-06-05 00:02:50 +05:30
739e8e504d wiki: Enable nginx proxy for navidrome and minio 2023-06-04 23:00:10 +05:30
4e4b6add85 wiki: disable paperless, dex and outline 2023-06-04 22:41:48 +05:30
17fd11a6a9 Add rhea to hosts and fish abbreviations 2023-06-03 12:28:06 +05:30
6673436bf3 Add hosts entries and fish abbrev for titan and lapetus
titan and lapetus are first of two new Raspberry Pi Zero Ws.

While quite anemic and decidedly incapable of running modern NixOS, they
still run Debian well enough, and are still full computers in their own
right.

So they get hostnames, the first of two moons in solar system, starting
from Saturn (should last a while :p), by ascending order of their year
of discovery. After Saturn, it'll be Jupyter, Uranus, Neptune, and then
back inwards starting from Mars. Luna will be last (if we ever manage to
get that far :p)
2023-06-02 01:24:55 +05:30
c716951f29 Syncthing: update for upstream option change 2023-05-28 16:20:10 +05:30
872bd8710b home: remove helix 2023-05-28 16:19:06 +05:30
c499caaec5 wiki: more outline 2023-05-27 19:57:07 +05:30
d2c731ae7f wiki: More change for outline 2023-05-27 19:49:29 +05:30
754e3133f9 wiki: Give outline correct url for dex 2023-05-27 19:42:15 +05:30
ec56ca4d28 wiki: More changes for outline 2023-05-27 19:36:58 +05:30
e03b09eb2a wiki: Enable outline to use Dex 2023-05-27 19:27:11 +05:30
1d1b259866 wiki: More changes 2023-05-27 19:05:36 +05:30
3ae0554efb wiki/outline: Attempt #2 2023-05-27 18:15:10 +05:30
986588255f wiki: Enable minio and add a new secret key for the same 2023-05-27 18:03:13 +05:30
8d36c91bff common: Add fsh alias to enable FHS with all currently installed libs 2023-05-27 15:17:49 +05:30
657db2ce17 wiki: Disable minio 2023-05-27 12:53:24 +05:30
dbfd58bef3 wiki: open ports for minio 2023-05-26 00:32:42 +05:30
5b9864a639 wiki: Disable outline, Add minio 2023-05-25 18:02:53 +05:30
386427b7ee wiki: Initial implementation
Ideally this should be split into separate packages, but we'll see. This
commit enables two services for bebop:

- outline (getoutline.com)
  A personal notion.so - like note-taking and knowledge base.
  I do like and prefer org-mode, but this is nicer looking and useful
  for gen-pop.
- paperless
  To store all documents in PDF format plus automatically OCR them and
  query the OCR'ed text.
2023-05-24 01:37:41 +05:30
06d1be47a7 monitoring: Add extra collectors to prometheus node
Does NOT work
2023-05-21 11:19:42 +05:30
f7a53e19e7 monitoring: Add new job for every target
Doesn NOT work
2023-05-21 11:19:23 +05:30
6541afb931 monitoring: Add job to scrape metrics from OpenWRT 2023-05-21 11:10:05 +05:30
7e1e1eb17d monitoring: remove zabbix 2023-05-21 11:09:45 +05:30
37bec4cb64 Calibre: Add module and enable for both hermes and bebop 2023-05-18 22:36:14 +05:30
8cf2aec09f monitoring: Add new exporters and their scraping for Prometheus
- Systemd
- influxdb
- pihole
2023-05-18 22:15:03 +05:30
7b254da83d syncthing: More api updated 2023-05-18 22:14:42 +05:30
c3ca54be60 grafana: Disable analytics
I'm surprised at Nixpkgs keeping them enabled by default :(
2023-05-17 00:15:26 +05:30
4b2b429052 common: Enable Atuin integration
shell history backed by sqlite database and spruced up with colorful
interface.

It is a direct replacement for fzf in that regard, and seems to work
quite well, albeit does not interact with fzf satisfactorily. So this is
an experiment to see how it goes.

It also provides syncing of shell history, with end-to-end encryption,
so that's something I'm looking forward to. Let's see how it goes.
2023-05-16 13:03:08 +05:30
f6a099b239 deploy-rs: Fully working deployments from hermes to bebop
I'm not sure whether the passwordless sudo is required, but I'm too
tired to test right now. Anyway, this works.

Also unsure on the statelessness of deploy-rs, but again, its simple
enough, didn't require changing anything else much and it works.

Perhaps some day, I'll see about trying out colmena for deploying
secrets, but until then, agenix is good enough for my needs.
2023-04-30 22:23:55 +05:30
bc8062f330 deploy-rs: More configuration
Right now this fails, because what I assume is a failure with emulation
in WSL, but otherwise I'm linking the overall approach of reusing the
preconfigured nixOSConfigurations in the same flake, as well as
lightweight burden of configuration. Doesn't hurt that it is written in
Rust rather than Python.
2023-04-30 16:59:46 +05:30
34cadf5c84 monitoring: Initial config for zabbix 2023-04-29 13:14:29 +05:30
8fb55cfa17 bebop: Update to changed options 2023-04-23 18:26:03 +05:30
e47ff31885 home: Enable exa, a replacement for 'ls'
Although aliases are enabled, I could not figure out a way to get them
to work with my current shell. I think this is because while
home-manager is trying to set aliases, they are set and controlled by
NixOS config, which doesn't have such option for fzf. I'll need to find
a way to set Fish as default shell via home-manager, but right now that
way does not work because home-manager cannot set fish plugins by using
nixpkgs derivation for it directly. :(
2023-04-20 14:32:51 +05:30
ee6f0461c3 hermes: Minor modification to fzf config 2023-04-20 14:32:32 +05:30
9b08f7b64c fish: switch emacs dir to new default freedesktop dir 2023-04-16 19:15:37 +05:30
1622f2b89a fonts: Add IBM Plex Mono 2023-04-05 01:56:27 +05:30
4ebf9bff80 home: Add nix-output-manager 2023-03-25 17:43:32 +05:30
22fd2e203a htop: Do not show full path
On NixOS the full path of binaries is long, obscures the flags/options given,
and is not very useful, since the nix store and hash are quite meaningless.

As such, it makes sense on NixOS to hide the full path of the program.

As for how to find the actual variable names for htop config, this file is
useful:

40104588f3/Settings.c
2022-12-12 14:12:06 +05:30
43acb193ac common-home: Add Helix editor
As an experiment at better Vim-style terminal editor.
2022-12-07 12:53:18 +05:30
c701f5a4d1 fish: Add another abbrev to update flake with sudo 2022-11-08 01:46:35 +05:30
9a7f817fdd hermes/WSL: Change generate resolv.conf due to NixOS-WSL update
Without this the build fails, so this is kinda unavoidable.
2022-11-07 13:05:41 +05:30
d46117ffb5 WSL: Disable nativeSystemd
Its support is very experimental upstream and things break. For e.g. user-level
services just don't work, and have no way to know/fix it. NixOS-WSL maintainer
is not very keen on working around that because of complexity and because
upstream is better place to fix it. As such, and on his advice, its better to
stick to the original state of affairs.
2022-11-04 21:36:10 +05:30
b83346874a WSL: Use native systemd support
Now that WSL comes with native systemd support of its own, NixOS-WSL can use it.
2022-11-04 13:21:29 +05:30
2f6bf35afc hermes: Fix gtk build failures
By removing minimal.nix config.noXlib is not set, and includes some other
packages per matrix answer.

But it will allow gtk to build and the rest of the system can now be updated.
2022-11-04 13:20:26 +05:30
ef339bf13b Elixir: Remove Elixir module
also remove commented import for elixir module from Hermes
2022-11-01 12:22:12 +05:30
a5549d831d Elixir: Remove elixir-LS path hack
emacs/eglot is now configured to use correct executable defined by the Emacs
package itself, so this hack is not required anymore
2022-10-21 23:02:56 +05:30
86bff1ef68 Revert "Common/Home: Temporarily disable manpages"
This reverts commit 2192fd0a60.

Upstream home-manager is now fixed and this is not required any more.
2022-10-21 13:45:59 +05:30
31d778b7ad Elixir: Switch to 1.14 2022-10-19 14:10:19 +05:30
2192fd0a60 Common/Home: Temporarily disable manpages
As a workaround for upstrean Nixpkgs issue
2022-10-19 13:31:27 +05:30
830ee784d2 WSL: Attempt to fix mount path 2022-10-17 11:00:53 +05:30
a4b46acf5e Fish: Add alias for 'mu index' 2022-09-23 11:28:13 +05:30
866b555cc6 Emacs+Fonts: Fix all-the-icons flag icons in mu4e
After bit of investigation across doom and package wiki and source code, bit
more googling to see why the flags were missing, turns out the font package was
missing from NixOS.

all-the-icons package in emacs closure is not strictly necessary, as doom is
expected to download it automatically, but I'll probably always have it, so its
a safe bet to keep both in sync.
2022-09-08 20:59:32 +05:30
c713048484 Hermes/Elixir: Add gnumake
Because for some reason exqlite compilation fails without some version of make.
2022-09-01 21:08:42 +05:30
5feda0f1f5 Hermes: Setup Elixir + Phoenix liveView packages
The LSP setup was bit more involved than expected, but it works.

- Create environment variable with ls package path.
- Do this globally because Fish is not yet managed by home-manager
- Use the variable to get package path in Emacs (configured in Doom Emacs
 config)

Currently the Elixir stuff is installed globally but this can work as far as I
can see. I might have to synchronise between project and system flake
occasionally, but I think it will be manageable for a while.
2022-08-28 11:07:16 +05:30
97fcac9e89 Fonts: Remove Julia Mono and IBM Plex fonts
I have not used these in a while. I also switched back to Fira Code today, and
it looks a lot better on HiDPI display with larger size compared to 1080p
display.

Julia Mono also wasn't being very helpful with the emojis, so its intended
purpose was not being served anyway.
2022-08-26 12:36:02 +05:30
551908cb7f hermes: disable hosts and resolve.conf generation
Inherit from Windows directly and make do with that. Once cache issues are
resolved-ish, I will think about re-enabling.
2022-07-05 21:34:56 +05:30
2ae292ebac WSL: Fix for NixOS-WSL update
Enable hosts and resolve config
2022-07-02 11:59:39 +05:30
e736becf78 Fix stateVersion for home-manager 2022-06-21 19:08:19 +05:30
8cc24511e0 Hermes: Let WSL handle networking
While I can setup dhcp with bridged networking on WSL, it won't be as friction
free. I'll have to setup a bridged adapter with same name in Hyper-V and then
the imperative state starts accumulating again.

Not fun.

I might have hardcoded hotsts file, which would have had been alright with my
threat model, but I realised only reason I want my DNS is privacy and
ad-blocking. But since neither browser nor any nefarious applications (at least
I hope not) run from within the VM, oit doesn't make sense.

Now the only thing remaining about this is that broken scrobbling in navidrome.
In that case, oh well.. not like all the client applications are fun,  so might
as well live with it.
2022-06-13 16:49:31 +05:30
4040d067f8 Hermes: Make NixOS generate hosts file
By default WSL generates the hosts file, but since NixOS can do its job, its
better to let it. Previous hosts file must be deleted first for this to take
effect.

resolv.conf generation via NixOS is currently disabled, but I might just do it.
DHCP is disabled so I'm not sure what else needs to be applied, but we'll see.
2022-06-13 16:41:28 +05:30
da8ad7a3a3 Revert dbc2a39e: DNS fix attempt 2022-06-13 10:29:33 +05:30
927cad466d Hermes: Move WSL config to separate module 2022-06-13 10:27:56 +05:30
57908c2b81 Navidrome: Move datafolder under homdir root
Navidrome config cannot be shared, it makes no sense to keep it synced under
org.
2022-06-12 15:47:03 +05:30
7f338deb98 navidrome: Make data folders independent of hosts
Turns out sharing navidrome data isn't possible. They don't really work
together.

So next best thing is to separate them out.
2022-06-12 14:53:55 +05:30
ddc5a663a7 whitespace cleanup 2022-06-12 13:53:37 +05:30
fcae51e38a Navidrome: Fix Music and Data Directories
THe systemd Unit for navidrome in nixpkgs is too overzealous in permission
denials.

It blocks homedir access by default (which I believe is dumb), so if MusicFolder
and DataFolder are anywhere inside homedir, they are not available to service at
runtime.

MusicFolder can be read-only, but DataFolder must be write-able.

This change also force sets user and group. I'm not sure that is necessary, but
since DynamicUser is true, I might just get it over with.
2022-06-12 13:18:38 +05:30
67dad94e7d navidrome: Explicitly enable Listenbrainz integration
Not that it is working.. I suspect it is another victim of overzealous systemd
unit configuration in Nixpkgs. Anyway I opened a bug report for it on navidrome
repo, probably have some response in next few weeks.
2022-06-12 12:28:51 +05:30
8dbb2e85f0 Navidrome: More customization 2022-06-12 01:55:01 +05:30
1e494aa605 Hermes,Bebop: Add and enable Navidrome audio server
Because WSL is ridden with bugs, I'm going to try running my Music over a
server.

This also provides opportunity to finally unify and start making proper
playlists that will stick.
2022-06-11 22:08:35 +05:30