Commit graph

626 commits

Author SHA1 Message Date
a73f16ddf9 Remove nixpkgs-unstable
Also remove cachix cache for nixpkgs-unstable.

Turns out I am not using any of this on WSL, so doesn't make any sense to keep
it around.
2022-07-05 21:33:47 +05:30
34ad602012 flake.lock: 2022_07_03
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/a189248df5e56b652483675fd1d35727b6cc7a59' (2022-07-02)
  → 'github:nix-community/emacs-overlay/7ac6aef457d59da09089754681ec8d642a5372be' (2022-07-03)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/cf3ab54b4afe2b7477faa1dd0b65bf74c055d70c' (2022-06-29)
  → 'github:nixos/nixpkgs/0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb' (2022-07-02)
2022-07-03 11:29:29 +05:30
2ae292ebac WSL: Fix for NixOS-WSL update
Enable hosts and resolve config
2022-07-02 11:59:39 +05:30
ed83db3339 flake.lock: 2022_07_02 2022-07-02 11:59:24 +05:30
7a8496c2ae flake.lock: 2022_06_29 2022-06-29 12:39:43 +05:30
149f132836 Hermes: Add texlive and tectonic 2022-06-29 12:39:28 +05:30
70041d00d3 flake.lock: 2022_06_17 2022-06-27 12:00:52 +05:30
f4b5bc73c1 flake.lock: 2022_06_26
vterm crashes on this build.
2022-06-26 10:04:42 +05:30
a02267eb22 Revert "Add cuda-maintainers cachix binary cache"
This reverts commit 408c613cfa.
2022-06-25 21:40:25 +05:30
a4fb09f390 Whitespace changes 2022-06-25 21:40:25 +05:30
e736becf78 Fix stateVersion for home-manager 2022-06-21 19:08:19 +05:30
f1cf89fc25 flake.lock: 2022_06_10
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/85c0398418b657c2c91ea8a52fcebca3e04529b5' (2022-06-18)
  → 'github:nix-community/emacs-overlay/24a3db32a164c797e66f55270390f3ad69e3c8d3' (2022-06-21)
• Updated input 'home-manager':
    'github:nix-community/home-manager/1de492f6f8e9937c822333739c5d5b20d93bf49f' (2022-06-16)
  → 'github:nix-community/home-manager/ce563f591195cf363bca382fe02ea5ca87754773' (2022-06-20)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/0cab18a48de7914ef8cad35dca0bb36868f3e1af' (2022-06-01)
  → 'github:NixOS/nixos-hardware/f9d8dff4e621f2d7f2b84d9e84bc6359715f971c' (2022-06-21)
• Updated input 'nixos-wsl':
    'github:nix-community/NixOS-WSL/8fe0996264d173b5250300afeaf057180b9f27b2' (2022-06-15)
  → 'github:nix-community/NixOS-WSL/e178b6df72d79324a8446cd175d9d091223585ae' (2022-06-20)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/3d7435c638baffaa826b85459df0fff47f12317d' (2022-06-16)
  → 'github:nixos/nixpkgs/0d68d7c857fe301d49cdcd56130e0beea4ecd5aa' (2022-06-19)
2022-06-21 18:28:05 +05:30
59fab43f99 flake.lock: 2022_06_18
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/e8aa04eaa4cb8664a72191547fc2395dddd3c112' (2022-06-17)
  → 'github:nix-community/emacs-overlay/85c0398418b657c2c91ea8a52fcebca3e04529b5' (2022-06-18)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/b1957596ff1c7aa8c55c4512b7ad1c9672502e8e' (2022-06-15)
  → 'github:nixos/nixpkgs/3d7435c638baffaa826b85459df0fff47f12317d' (2022-06-16)
2022-06-18 12:23:32 +05:30
4c5f0e43d4 flake.lock: 2022_06_17
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/d1305b892117b206057b5db0fea56049e1ec9317' (2022-06-16)
  → 'github:nix-community/emacs-overlay/e8aa04eaa4cb8664a72191547fc2395dddd3c112' (2022-06-17)
• Updated input 'home-manager':
    'github:nix-community/home-manager/504d6de6a061993c3f585f9a86c6a9f68927b1c0' (2022-06-15)
  → 'github:nix-community/home-manager/1de492f6f8e9937c822333739c5d5b20d93bf49f' (2022-06-16)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/6616de389ed55fba6eeba60377fc04732d5a207c' (2022-06-14)
  → 'github:nixos/nixpkgs/b1957596ff1c7aa8c55c4512b7ad1c9672502e8e' (2022-06-15)
2022-06-17 11:30:03 +05:30
1b88b4663d flake.lock: 2022_06_16
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/5a16283b229aa4e7403a35b01ef2cc538c33dc03' (2022-06-15)
  → 'github:nix-community/emacs-overlay/d1305b892117b206057b5db0fea56049e1ec9317' (2022-06-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/87d30c164849a7471d99749aa4d2d28b81564f69' (2022-06-14)
  → 'github:nix-community/home-manager/504d6de6a061993c3f585f9a86c6a9f68927b1c0' (2022-06-15)
• Updated input 'nixos-wsl':
    'github:nix-community/NixOS-WSL/afc01c08692b007998b6cee277a3b8d76b9fe1c5' (2022-06-09)
  → 'github:nix-community/NixOS-WSL/8fe0996264d173b5250300afeaf057180b9f27b2' (2022-06-15)
2022-06-16 16:03:12 +05:30
c9a0bd8540 flake.nix: 2022_06_15
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/859fbd8964ae5605e44020a559d73905f1e1cfa5' (2022-06-14)
  → 'github:nix-community/emacs-overlay/5a16283b229aa4e7403a35b01ef2cc538c33dc03' (2022-06-15)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/13f08d71ceff5101321e0291854495a1ec153a5e' (2022-06-13)
  → 'github:nixos/nixpkgs/6616de389ed55fba6eeba60377fc04732d5a207c' (2022-06-14)
2022-06-15 19:01:00 +05:30
290e345b1b flake.lock: 2022_06_14: home-manager fix 2022-06-14 16:29:08 +05:30
a5d5dbd74e meta: minor rearrangement 2022-06-14 13:46:03 +05:30
1d856c89bd flake.lock: 2022_06_14
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/29dcfbc1b29ae7281e95367e0f2358b44224a46e' (2022-06-13)
  → 'github:nix-community/emacs-overlay/d215a5555c8f3856707c25a74136e51f6137a9fb' (2022-06-14)
• Updated input 'home-manager':
    'github:nix-community/home-manager/70824bb5c790b820b189f62f643f795b1d2ade2e' (2022-06-07)
  → 'github:nix-community/home-manager/cd3dd2188c19416bc70d9703f84e07a0646af5bf' (2022-06-13)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/914ef51ffa88d9b386c71bdc88bffc5273c08ada' (2022-06-12)
  → 'github:nixos/nixpkgs/13f08d71ceff5101321e0291854495a1ec153a5e' (2022-06-13)
2022-06-14 13:27:56 +05:30
67374c7e0d flake.lock: 2022_06_13
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/94aeb45d43fb1d794cefe6d4594636b7469eae6f' (2022-06-12)
  → 'github:nix-community/emacs-overlay/29dcfbc1b29ae7281e95367e0f2358b44224a46e' (2022-06-13)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/90cd5459a1fd707819b9a3fb9c852beaaac3b79a' (2022-06-11)
  → 'github:nixos/nixpkgs/914ef51ffa88d9b386c71bdc88bffc5273c08ada' (2022-06-12)
2022-06-13 19:57:11 +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
dbc2a39e26 Hermes: Attempt to fix DNS
Currently autogenerated by Microsoft.

After activating this,

$ sudo rm -rf /etc/resolv.conf

$ wsl --shutdown

then restart WSL VM.

Unless previous resolv.conf is deleted, new DNS configuration is not generated
2022-06-13 10:14:54 +05:30
cb760279b5 Emacs: Disable unused packages
- beancount and ilk
- pdftk
2022-06-13 10:12:20 +05:30
c48e8d8543 flake.lock: 2022_06_13
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/ae1a1774095fae839ca2da8ef9d1bedcc33f3f9b' (2022-06-11)
  → 'github:nix-community/emacs-overlay/94aeb45d43fb1d794cefe6d4594636b7469eae6f' (2022-06-12)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/e0169d7a9d324afebf5679551407756c77af8930' (2022-06-08)
  → 'github:nixos/nixpkgs/90cd5459a1fd707819b9a3fb9c852beaaac3b79a' (2022-06-11)
2022-06-13 09:42:50 +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
21ab9b687b Hermes: Add youtube-dl 2022-06-12 01:20:42 +05:30
8046779e4e Hermes: Remove Strawberry
With navidrome and Strawberry on Windows, I have better solution for music
streaming, one that isn't riddled by WSL bugs.
2022-06-11 22:38:04 +05:30
1b1425b9e1 Hermes: Disable backup services
Restic requires imperative config, and I'm not really willing to put with it
right now.
2022-06-11 22:10:11 +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
ec63bbb30b flake.lock: 2022_06_11
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/651c417e7fd8d8f1ee67560bc0b2f85aba2c9cab' (2022-06-10)
  → 'github:nix-community/emacs-overlay/ae1a1774095fae839ca2da8ef9d1bedcc33f3f9b' (2022-06-11)
2022-06-11 12:43:05 +05:30
f86fab3fec Hermes: Disable dev documentation
i.e. man pages provided by *-devel packages. I don't have any of them installed,
and reading their man pages isn't really part of my workflow.
2022-06-11 09:09:37 +05:30
b7321d0e02 flake.lock: 2022_06_10
This build also fixes broken info manuals in Emacs
2022-06-10 17:55:55 +05:30
587f418e73 Hermes: Enable man pages and documentation 2022-06-10 16:19:10 +05:30
5e9b2182a0 flake.lock: 2022_06_10 2022-06-10 08:34:37 +05:30
b8f3c60776 Hermes: Configure Wayland by default for SDL applications
Similar to GDK and Qt
2022-06-09 20:31:31 +05:30
a91a20e533 Hermes: Add Strawberry, Picard
Audio still has issues with WSL. Particularly with resuming audio for paused
applications. But I'm willing to experiment for now.
2022-06-09 20:30:32 +05:30
74781ef9a5 Meta: Minor comment 2022-06-09 20:29:46 +05:30
079ba72b7b Hermes: Add more environment variables
for WSL scaling as well as default backends for GDK and QT
2022-06-09 16:18:56 +05:30
5d4ac9c4ab Hermes/Syncthing: Enable Keepass and Music folder sync 2022-06-09 16:18:24 +05:30
486caa3c14 Hermes: Set GTK theme to Adwaita Dark
Since setting the WSL scaling to 200%, the applications are behaving mostly
right, except for the giant title bar in every WSL app. I will most likely get
sick of it, but for now, it is what it is.

Apart from giant size, the thing bothering me the most is that it follows light
theme by default and the giant title bar size annoyed me much more. Setting a
single environment variable turns the dark theme on and the giant title bar is
now much more palatable.
2022-06-09 14:42:11 +05:30
1a25adfc8c Hermes: setup home-manager for root 2022-06-08 17:39:00 +05:30
5d009b6e5e Hermes/htop: Make Htop interface cleaner
by removing few columns:

1. Priority
2. Nice
3. M_SIZE
4. M_RESIDENT
5. M_SHARE
6. STATE
2022-06-08 17:38:10 +05:30