sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS stable: 20.03 ✨ | 20.09 ZHF: https://discourse.nixos.org/t/nixos-20-09-zero-hydra-failures/8928 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 20.03 RMs: worldofpeace, disasm; 20.09: worldofpeace, jonringer | https://logs.nix.samueldr.com/nixos-dev
cole-h has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 258 seconds]
pinpox2 has joined #nixos-dev
pinpox has quit [Ping timeout: 240 seconds]
pinpox2 is now known as pinpox
ris has quit [Ping timeout: 260 seconds]
rajivr has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
stoile has quit [Ping timeout: 264 seconds]
<Mic92> JJJollyjim: right now it seems to be only our Linux kernel that misses one dax option, virtiofsd in qemu master seems to be more or less has all the features.
<Mic92> I think we should enable this option as well.
stoile has joined #nixos-dev
orivej has joined #nixos-dev
justanotheruser has quit [Ping timeout: 246 seconds]
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nixos-dev
AlwaysLivid has joined #nixos-dev
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-dev
<rajivr> There is a comment there https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/buildenv/default.nix#L1-L3 that says "This is a fork of buildEnv in the Nix distribution". However, there does not seem to be `buildins.buildEnv`, only `nixpkgs.buildEnv`. I was wondering if I was missing something or if this comment was outdated?
<lopsided98> rajivr: I think that refers to this: https://github.com/NixOS/nix/tree/master/src/nix-env, although I think that comment is quite outdated now as the implementations have completely diverged
<rajivr> Thanks. lopsided98
<JJJollyjim> Not sure I understand, Mic92
<JJJollyjim> are you saying dax has been merged in to qemu master?
<JJJollyjim> i don't see any signs of that on patchew
<JJJollyjim> or are you saying we need to enable a kernel option somehow?
<Mic92> JJJollyjim: ah, now I see what you mean
<Mic92> I was looking at the kernel options required for dax.
<Mic92> but qemu is also missing some flags in virtiofs
<JJJollyjim> yes, and i believe there are also unmerged changes to the qemu binary itself needed to make dax work (not just virtiofsd)
<JJJollyjim> the branch is kept up to date ish here https://gitlab.com/virtio-fs/qemu/-/commits/virtio-fs-dev
<Mic92> I wish upstream would not use these unusuable mailing lists
<JJJollyjim> it sucks :/
<JJJollyjim> (it hasn't been posted btw, not sure what David Gilbert is waiting for)
<JJJollyjim> building qemu from git is a bit of a pain, i put a bit of time into writing a nix derivation to do it and gave up
<JJJollyjim> (they have a script that fucks around with git submodules and stuff to produce a tarball)
<JJJollyjim> (which is what we currently build from)
<Mic92> I will have a look at that.
<Mic92> I want extend https://github.com/Mic92/cntr for VMs
<JJJollyjim> (for testing purposes you can just run that tarball script yourself and then point the normal derivation at it)
<JJJollyjim> nice
<Mic92> Having DAX in qemu itself makes a lot of sense because it halfs the required page cache.
<Mic92> I think they will have it sooner or later
<Mic92> Not to mention the copy avoidance
<Mic92> For cntr I did extensive filesystem benchmarking and this was one of the bottlenecks
<JJJollyjim> i'm a little confused reading the cntr readme, what exactly does the fuse filesystem expose?
<JJJollyjim> it sounds like it's a mirror of the container's filesystem (but with an overlayfs-type thing so writes aren't visible to the container)?
<Mic92> JJJollyjim: it allows to use the host fs within the container.
<Mic92> i.e. you can use this to debug nix sandbox builds.
<JJJollyjim> right, so I inherit everything except the mount namespace?
<Mic92> It also inherits the mount namespace but than spawns a new one that has the fuse
AlwaysLivid has quit [Ping timeout: 260 seconds]
<JJJollyjim> the fuse process does, but my shell doesn't?
<JJJollyjim> oh right
<Mic92> I used the notion of fat container there, but it could be also the host filesystem instead
<Mic92> Maybe I should include some of the images in the readme
<JJJollyjim> cool, i think i get it
<Mic92> I want to adapt the same concept for VMs, to access the VM kernel I thought about using some hyper call hacks described here: https://link.springer.com/chapter/10.1007/978-3-642-38631-2_15
alp has joined #nixos-dev
cole-h has joined #nixos-dev
orivej has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos-dev
saschagrunert has joined #nixos-dev
cole-h has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 272 seconds]
__monty__ has joined #nixos-dev
justanotheruser has quit [Ping timeout: 260 seconds]
alp has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-dev
bridge[evilred] has quit [Remote host closed the connection]
adisbladis has joined #nixos-dev
das_j has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
ajs124 has joined #nixos-dev
Scriptkiddi has joined #nixos-dev
das_j has joined #nixos-dev
teto has joined #nixos-dev
orivej has joined #nixos-dev
eyJhb has quit [Quit: Clever message]
eyJhb has joined #nixos-dev
eyJhb has joined #nixos-dev
eyJhb has quit [Changing host]
<manveru> is there any reason why https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/tools/nixos-rebuild.sh#L337 doesn't have `systemctl` as a dependency?
<manveru> s/systemctl/systemd/
<manveru> yeah
<manveru> it's not in there, only jq is...
<gchristensen> I mean, it also doensn't have nix as a dependency
<gchristensen> or ssh, orcoreutils
<gchristensen> it really needs resholved
<manveru> i'm not sure how, but `nixos-rebuild switch --target-host` now gives me `/nix/store/q6a2kz73srli2s4nx4zhngvgpz8zibm4-nixos-rebuild/bin/nixos-rebuild: line 320: systemctl: command not found`
<gchristensen> oh well it wouldn't work anyway, since that'd be running systemctl over SSH I assume, and PATH doesn't mean much over SSH
<manveru> jup
<gchristensen> let's use nix-build over SSH, disabling the sandbox and getting all our dependencies for free
<manveru> guess i gotta build nixos-rebuild myself now after all...
<gchristensen> you could improve it upstream :)
<manveru> who has time for that ^^;
<gchristensen> ...
<gchristensen> love2pay the brokenness tax time and time again
<manveru> but yeah, guess it's time to fork anyway, this would be a PITA to monkeypatch
<manveru> i was just wondering... there must be a reason for the path being so empty
<manveru> and why it was working in previous nixpkgs
<gchristensen> probably not, the reason it is so empty is probably b/c nobody saw problems with it with other tools
<gchristensen> your target-host might have a .bashrc or something causing the PATH to be more minimal than usual
<manveru> not that i've found
<manveru> normal ssh shows `/run/wrappers/bin:/root/.nix-profile/bin:/etc/profiles/per-user/root/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin` when i do `ssh $HOST /run/current-system/sw/bin/bash -c 'echo $PATH'`
<manveru> and systemctl is of course in `/run/current-system/sw/bin/systemctl`
<manveru> hmm, actually it might try the local systemctl
<gchristensen> are you doing literally that cmd?
<gchristensen> oh yep it surely does use the local systemctl
<manveru> and the local PATH is indeed devoid of it
<manveru> thanks to my colleague who wants to use it on darwin... :P
<gchristensen> that'll do ya. probably shouldn't require systemctl to exist locally if you're deploying remotely
<manveru> yeah
orivej has quit [Ping timeout: 246 seconds]
costrouc has quit [Quit: costrouc]
costrouc has joined #nixos-dev
saschagrunert has quit [Remote host closed the connection]
saschagrunert has joined #nixos-dev
saschagrunert has quit [Client Quit]
justanotheruser has joined #nixos-dev
itc-ger has joined #nixos-dev
<{^_^}> #101253 (by eyJhb, 2 hours ago, open): bitlbee-facebook: 1.2.0 -> 1.2.1
orivej has joined #nixos-dev
Baughn has quit [Ping timeout: 240 seconds]
Baughn has joined #nixos-dev
alp has quit [Ping timeout: 272 seconds]
cole-h has joined #nixos-dev
<rnhmjoj> can anyone familiar with the testing infrastructure take a look at PR #101246?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/101246 (by rnhmjoj, 6 hours ago, open): nixos: fix qemu_test being used in normal VMs
rajivr has quit [Quit: Connection closed for inactivity]
ris has joined #nixos-dev
alp has joined #nixos-dev
__Sander__ has joined #nixos-dev
hplar has quit [Ping timeout: 256 seconds]
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-dev
hplar has joined #nixos-dev
tv has quit [Ping timeout: 256 seconds]
tv has joined #nixos-dev
Baughn has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
itc-ger has quit [Ping timeout: 240 seconds]
Mic92 has quit [Quit: WeeChat 2.9]
Mic92 has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
bridge[evilred] has joined #nixos-dev
bridge[evilred] has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
__Sander__ has quit [Quit: Konversation terminated!]
orivej has joined #nixos-dev
alp has quit [Ping timeout: 246 seconds]
alp has joined #nixos-dev
Scriptkiddi has quit [Quit: killed]
das_j has quit [Quit: killed]
ajs124 has quit [Quit: killed]
ajs124 has joined #nixos-dev
Scriptkiddi has joined #nixos-dev
das_j has joined #nixos-dev