Commit graph

12 commits

Author SHA1 Message Date
Payas Relekar
6c770123d5 hermes/wsl: Use native systemd 2023-07-04 21:48:10 +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
830ee784d2 WSL: Attempt to fix mount path 2022-10-17 11:00:53 +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
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