!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

329 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
22 Oct 2024
@bumperboat:matrix.orgbumperboatwhy is --disk-usage say theres only 16M in use when there is 4.4G02:29:47
@bumperboat:matrix.orgbumperboatand i have to specify --directory /var/log/journal to get the right answer02:30:14
@bumperboat:matrix.orgbumperboati think its some goofy msft sytemd thing02:33:01
@bumperboat:matrix.orgbumperboatinterested in if yours does the same tho02:33:39
@nzbr:nzbr.deArson Copperflame I have the same behavior

NixOS nzbr@pulsar
ZS ~> journalctl --disk-usage
Archived and active journals take up 16.0M in the file system.

NixOS nzbr@pulsar
ZS ~> journalctl --disk-usage --directory /var/log/journal
Archived and active journals take up 3.8G in the file system.
02:37:19
@nzbr:nzbr.deArson CopperflameSeems to work as intended on Ubuntu02:38:57
@nzbr:nzbr.deArson Copperflame I don't see anything related to journald in mount though 02:39:30
@bumperboat:matrix.orgbumperboat if i do journalctl --firectory /var/log/journal --vacuum-size 3G it goes through the files that it wants to delete or rewrite, but it doesnt do anything to them 02:57:46
@bumperboat:matrix.orgbumperboat * if i do journalctl --directory /var/log/journal --vacuum-size 3G it goes through the files that it wants to delete or rewrite, but it doesnt do anything to them 02:58:00
@bumperboat:matrix.orgbumperboatand my ubuntu wsl does have the right behaviour as well02:59:26
@nzbr:nzbr.deArson CopperflameI looked through the systemd derivation and the patches it applies, but I didn't find anything that would explain this03:06:34
@bumperboat:matrix.orgbumperboatwhy does /etc/machine-id change on every boot?03:46:02
@bumperboat:matrix.orgbumperboatall the dirs in my /var/log/journal are from the various machine-id's ever since i created it03:47:25
@bumperboat:matrix.orgbumperboatand if i do journalctl --list-boots it will only show the one boot because the machine-id changed03:48:02
@bumperboat:matrix.orgbumperboatoh its tmpfs thats fun03:53:43
@bumperboat:matrix.orgbumperboatyeah so journalctl only looks at directories in /var/log/journal/$(cat /etc/machine-id) so it is disregarding the logs from all the previous boots when vacuuming, or anything really04:09:44
@bumperboat:matrix.orgbumperboat * yeah so journalctl only looks at files in /var/log/journal/$(cat /etc/machine-id) so it is disregarding the logs from all the previous boots when vacuuming, or anything really04:11:11
@k900:0upti.meK900Hmm 05:58:40
@k900:0upti.meK900I wonder if that's an us problem05:58:47
@k900:0upti.meK900Or a WSL problem 05:58:54
@bumperboat:matrix.orgbumperboatis a static file on my ubuntu wsl06:10:52
@bumperboat:matrix.orgbumperboatfrom reading machine-id (5) systemd will create a random id when /etc is RO for live systems06:12:04
@bumperboat:matrix.orgbumperboatso thats my hunch 06:15:29
@bumperboat:matrix.orgbumperboat running systemd-machine-id-setup --commit manually resolves. but this should be ran by systemd-machine-id-commit.service (8) once /etc is writable - dunno why it isnt starting 08:10:33
@common16:matrix.orgcommon16Hey folks, I'm jumping back into this and I'm noticing my SSH agent is timing out when trying to push / pull from GH. I'm not quite sure how this should be configured but my goal is to completely remove everything from the Windows side and lean into doing everything in WSL17:10:28
@common16:matrix.orgcommon16Here's what my flake currently looks like: http://pastie.org/p/3N2t6Kw1PGAZ6QXtemPcXB17:10:41
@common16:matrix.orgcommon16Every time I start WSL I'm using ssh-add to manually add my GH creds but I'm not sure if it's being added to the wrong(?) ssh-agent or what's going on17:11:16
@common16:matrix.orgcommon16I also removed git completely from the Windows side of my machine so I'm not even sure if the .gitconfig is still valid to "inject" into my WSL(?)17:12:16
@bumperboat:matrix.orgbumperboatwithout seeing an error - my guess since I do not see any configuration to start and configure a user ssh-agent within your user environment that the ssh-add will fail22:08:38
@bumperboat:matrix.orgbumperboati would suggest look at using home-manager for your user it can be configured to start the agent for you and manage all the things (tm)22:10:22

Show newer messages


Back to Room ListRoom Version: 9