samueldr changed the topic of #nixos-dev to: #nixos-dev NixOS Development (#nixos for questions) | NixOS 19.09 is released! https://discourse.nixos.org/t/nixos-19-09-release/4306 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | https://r13y.com | 19.09 RMs: disasm, sphalerite | https://logs.nix.samueldr.com/nixos-dev
<gchristensen> sigh, predict_linear on our disk usage is not useful because nix builds fill the disk so fast fetching dependencies
<gchristensen> I think I'll change the disk space alert to be: node_filesystem_avail_bytes{mountpoint !~"/run(/.*)?",mountpoint !~"/boot(/.*)?", mountpoint !="/persist", fstype!="autofs"} <= 1e+10 ->
<gchristensen> https://status.nixos.org/prometheus/graph?g0.range_input=1y&g0.expr=node_filesystem_avail_bytes%7Bmountpoint%20!~%22%2Frun(%2F.*)%3F%22%2Cmountpoint%20!~%22%2Fboot(%2F.*)%3F%22%2C%20mountpoint%20!%3D%22%2Fpersist%22%2C%20fstype!%3D%22autofs%22%7D%20%3C%3D%201e%2B10&g0.tab=0
<worldofpeace> SLIM not supporting wayland is literally a dealbreaker
<qyliss> Does Xmonad support Wayland?
<qyliss> I was pretty sure they'd decided that was out of scope
<worldofpeace> Jan Tojnar: I believe we can fix this. I think the issue was just with GNOME, i.e I think maybe other distos notice the same thing.
<gchristensen> they'll need to rename to WaylandMonad
<worldofpeace> Jan Tojnar: I still have no idea if we're going for https://github.com/NixOS/nixpkgs/pull/53843
<{^_^}> #53843 (by hedning, 47 weeks ago, open): nixos/displayManager: introduce defaultSession
drakonis has quit [Ping timeout: 246 seconds]
<worldofpeace> Jan Tojnar: It seems lightdm has issues determining a session is a wayland session on nixos. https://github.com/canonical/lightdm/blob/712a0254baf2bedf0370affbb3b54bc68c2aafc2/src/seat.c#L960, it'll still launch an x11 version of gnome even if I remove all duplicates with an overlay hack. To force it I tried adding `X-LightDM-Session-Type=wayland` to the session, but then the session fails to start completely. Looking
<worldofpeace> from the logs, it appears it tries to use the xsession-wrapper for the wayland session.
<jtojnar> worldofpeace was guesing something like that was responsible
<jtojnar> one thing I hate about GitLab is how slow the file viewer is
<jtojnar> worldofpeace here it goes; patching lightdm like this should be upstreamable https://gitlab.gnome.org/GNOME/gdm/blob/8e109b8b3757e5112918098da0f23a9a855fc71c/daemon/gdm-session.c#L3160
<worldofpeace> Jan Tojnar: Often I think the file search doesn't even work on gnome's gitlab instance
<worldofpeace> Jan Tojnar: heh, that's exactly correct
<jtojnar> worldofpeace they have the webserver set up incorrectly – it does not handle %2F in file paths
<jtojnar> while it works on salsa.debian.org
<jtojnar> probably introduced by this https://gitlab.com/gitlab-org/gitlab-foss/issues/62055
<worldofpeace> Jan Tojnar: I can't remember which project to report that for them. any idea?
<worldofpeace> cool 👍️
<jtojnar> worldofpeace is not WAYLAND_SESSIONS_DIR used as default or something?
<worldofpeace> I think it was only used for those two if's
<jtojnar> yeah, looks like it, if the gh search works correctly
<worldofpeace> Jan Tojnar: it seems to have fixed one jarring issue, but it still have to set the key in the desktop file to force the wayland session starting
<jtojnar> personally, I find strstr abhorrent, but since C does not have string slices, we would have to free the result of g_path_get_dirname () 🤷‍♀️️
<jtojnar> worldofpeace weird, it should fall back to the directory one if the override key is not present https://github.com/canonical/lightdm/blob/712a0254baf2bedf0370affbb3b54bc68c2aafc2/src/session-config.c#L50-L51
<worldofpeace> heh, I guess I should put some debug messages in it Jan Tojnar.
<worldofpeace> will check
evanjs has joined #nixos-dev
<genesis> how to know why something is installed
<genesis> i'd have add lxqt.optionalPackages to my configuration.nix, but i don't find for example why qterminal is already installed.
<worldofpeace> Jan Tojnar: ah, figured it out. "/wayland-sessions/" -> "/wayland-sessions". The path doesn't have the final "/".
rsa has quit [Ping timeout: 240 seconds]
rsa has joined #nixos-dev
<jtojnar> worldofpeace good catch
<jtojnar> than we should be able tp use g_str_has_suffix
<worldofpeace> I'm going to see if it's possible wayland-sessions with gnome3 (with the duplicate name workaround) could even work in fedora
<jtojnar> I think dropping dm.default + wm.default in favour of displayManager.defaultSession will be nice
<jtojnar> I will try to work on it tomorrow, if hedning cannot
<worldofpeace> jtojnar++
<{^_^}> jtojnar's karma got increased to 17
<worldofpeace> I like it as well, it's definetely an improvement.
<worldofpeace> Ahh, I guess you can launch a gnome wayland session on fedora from lightdm (after some tweaks). So I guess there's a nixos specific issue here.
<worldofpeace> Lol, gchristensen case in point why I think lightdm should be default in nixos https://github.com/canonical/lightdm/pull/104. My patch was merged in the window of an hour.
<{^_^}> canonical/lightdm#104 (by worldofpeace, 1 hour ago, merged): Determine a session is wayland with a better heuristic
justanotheruser has quit [Ping timeout: 246 seconds]
justanotheruser has joined #nixos-dev
<yorick> did someone make a wayland-based slim alternative at some point?
drakonis has joined #nixos-dev
drakonis has quit [Ping timeout: 265 seconds]
FRidh has joined #nixos-dev
Jackneill has joined #nixos-dev
__monty__ has joined #nixos-dev
__Sander__ has joined #nixos-dev
cjpbirkbeck has quit [Quit: Quitting now.]
FRidh has quit [Quit: Konversation terminated!]
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
xwvvvvwx has quit [Quit: ZNC 1.7.5 - https://znc.in]
xwvvvvwx has joined #nixos-dev
Synthetica has joined #nixos-dev
<yorick> does anyone use the nix brotli support for anything?
<niksnut> it's used for the cache.nixos.org build logs
<yorick> aha!
<yorick> apparently it doesn't have a magic header, so you need metadata to tell it apart from other compression schemes
<niksnut> that was the main use case
zarel has joined #nixos-dev
FRidh has joined #nixos-dev
psyanticy has joined #nixos-dev
pie_ has quit [Ping timeout: 265 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
eraserhd has quit [Quit: WeeChat 2.6]
eraserhd has joined #nixos-dev
justanotheruser has joined #nixos-dev
pie_ has joined #nixos-dev
justanotheruser has quit [Ping timeout: 240 seconds]
<jtojnar> worldofpeace yay, getting rid of services.xserver.windowManager.default & services.xserver.desktopManager.default seems to work
justanotheruser has joined #nixos-dev
genesis has quit [Ping timeout: 276 seconds]
genesis has joined #nixos-dev
genesis has quit [Remote host closed the connection]
genesis has joined #nixos-dev
drakonis has joined #nixos-dev
__Sander__ has quit [Quit: Konversation terminated!]
<infinisil> Anybody know about kernel modules stuff? https://github.com/NixOS/nixpkgs/pull/66235
<{^_^}> #66235 (by xaverdh, 17 weeks ago, open): kernel/modules-closure.sh: fix the modules closure
<infinisil> It's pretty simple I guess, but I'm having a hard time reproducing the modprobe | sed result
<infinisil> Hmm though maybe I got it
drakonis has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos-dev
gustavderdrache has joined #nixos-dev
<gchristensen> dtz: ping? I'm seeing a package holding on to a reference to stdenv.cc.cc when using systems.example.musl64 for the crossSystem. do you mind taking a look at it with gustavderdrache?
<gchristensen> gustavderdrache: ^ can you provide the details?
Jackneill has quit [Remote host closed the connection]
<gustavderdrache> ^ here's what i'm building, and the comment has the `strings` result nix why-depends tells me is the reason my closure has gcc in it
pie_ has quit [Ping timeout: 276 seconds]
ixxie has joined #nixos-dev
drakonis has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos-dev
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos-dev
<jtojnar> anyone wants to review display manager module changes? https://github.com/NixOS/nixpkgs/pull/53843
<{^_^}> #53843 (by hedning, 47 weeks ago, open): nixos/displayManager: introduce defaultSession
<jtojnar> we are finally removing desktopManager.default and windowManager.default options
drakonis has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos-dev
justanotheruser has quit [Ping timeout: 268 seconds]
pie_ has joined #nixos-dev
<gchristensen> I really hate that GitHub gives such a useless default commit message for edits made in their UI " Update CONTRIBUTING.md "
<drakonis> i'm confused to why github's web UX is held in such high esteem
justanotheruser has joined #nixos-dev
<gustavderdrache> it's fine if you're like me and just use it to click links to README.md
psyanticy has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 240 seconds]
pie__ has joined #nixos-dev
pie_ has quit [Ping timeout: 268 seconds]
gustavderdrache has left #nixos-dev [#nixos-dev]
gustavderdrache has joined #nixos-dev
<worldofpeace> Jan Tojnar: Yay! Looking now
<jtojnar> worldofpeace forgot to update some test to the new option, pushed a fixup
<worldofpeace> hmm, our xsession wrapper has some questionable stuff in it
<jtojnar> yeah, I thought we already removed like half of the stuff
<jtojnar> like the pulseaudio
<worldofpeace> Jan Tojnar: We can for sure clean that up after this
<jtojnar> now I clearly remember fixing the issue of the missing mkdir
<jtojnar> either my memory is faulty (which would be weird for such a specific recollection), or I have some ghost branch somewhere
<jtojnar> how are we supposed to test this when half the WMs are broken on unstable too
<jtojnar> nixosTests.xmonad is stuck
<jtojnar> plasma5+icewm is stuck
<jtojnar> hmm, that combo actually starts for me on unstable but the screen goes to black immedately after icewm panel appears
<jtojnar> hmm, it was just a temporary black
<worldofpeace> I think the python port made the test become stuck and I forgot to fix it, was on the todo list
<worldofpeace> the xmonad one
<jtojnar> so we appear to have at least one regression
<jtojnar> I never know if it is a issue or just general slowness of Plasma, need to be more patient with it
<worldofpeace> Jan Tojnar: what does dex do exactly?
<jtojnar> worldofpeace it should run desktop files, I think
<jtojnar> worldofpeace though I think that branch might be a dead code
<worldofpeace> Jan Tojnar: plasma5 even rarely draws its desktop with the test on hydra https://hydra.nixos.org/build/107971256/download/1/screen.png
<worldofpeace> oh, sessionData could give me an easy way to autoenable displaymanagers depending on which desktopManager is enabled
<jtojnar> Talking about sessionData, WTFH was displayManager.session supposed to be? Using it for both input and also completely different output through the apply function?
<worldofpeace> I believe that's what the description describes
<worldofpeace> it's weird
phreedom_ has quit [Remote host closed the connection]
<jtojnar> the description only describes the input usage
phreedom has joined #nixos-dev
<jtojnar> fortunately, we needed to access the input unchanged, so I had to move the output function to a separate option
<jtojnar> (sessionData)
<jtojnar> I cannot even start GNOME from lightdm (and that is upstream session)
<worldofpeace> Jan Tojnar: xorg session?
<jtojnar> gnome-xorg; hmm, it is still starting
<jtojnar> maybe I should disable ibus
ixxie has quit [Ping timeout: 250 seconds]
marek has joined #nixos-dev
* worldofpeace uploaded an image: Screenshot from 2019-12-10 16.38.42.png (13KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/eErSENIfVEAOOVAqxCOhviMH >
<worldofpeace> not sure what's going on there ^
<jtojnar> okay at least gdm+xfce+openbox works
<gchristensen> worldofpeace++ jtojnar++
<{^_^}> jtojnar's karma got increased to 18, worldofpeace's karma got increased to 47
<worldofpeace> jtojnar++
<{^_^}> jtojnar's karma got increased to 19
<jtojnar> lightdm+xfce+openbox works too, so we did not break it entirely
Jackneill has joined #nixos-dev
<worldofpeace> I believe this PR would unblock wayland on plasma5, because they'll be no regressions with sddm
<drakonis> since plasma5 was brought up, 5.17 is currently blocked by a pending rewrite
<drakonis> #71232
<{^_^}> https://github.com/NixOS/nixpkgs/pull/71232 (by nyanloutre, 7 weeks ago, open): plasma-5: 5.16.5 -> 5.17.0
<worldofpeace> drakonis: they could just patch away the C++ wrappers and drop the shell script one into the patch during postInstall
<worldofpeace> by applying the patch to the old tree and fishing the file out :D
<drakonis> could work
<worldofpeace> Jan Tojnar: I noticed a session chooser had `none` as a session choice
<worldofpeace> Yeah, there's a none.desktop and its Exec is the xsession script without an argument, and an empty block to start desktop manager
Jackneill has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 265 seconds]
<jtojnar> worldofpeace I was wondering if we should include it
<worldofpeace> Jan Tojnar: I think other distro's xsession scripts have a fallback opt that just starts xterm, but I don't think you can actually select it through a dm
drakonis has joined #nixos-dev
lassulus has quit [Ping timeout: 240 seconds]
<jtojnar> btw, fixed the question marks
* jtojnar uploaded an image: Screenshot from 2019-12-10 23-21-37.png (39KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/qsskGagQbBVQWYcIMjcGKQva >
<jtojnar> on unstable, the session chooser is just empty when there are no sessions
<jtojnar> I wonder how got the Xfce rat stuck even when xfce is no longer installed
<worldofpeace> Maybe xfce uses accountsservice interface for lightdm that has a wallpaper key
<worldofpeace> it then copies the wallpaper under /var/lib/AccountsService
<jtojnar> yeah, that is only explanation that makes sense
<jtojnar> bad Xfce, mutating our systems
<worldofpeace> Jan Tojnar: I think that's just how lightdm-gtk-greeter is, Pantheon won't even display a chooser with one or 0 sessions
<worldofpeace> Could we exclude none from sessionNames completely?
zarel has quit [Ping timeout: 250 seconds]
zarel has joined #nixos-dev
octe has quit [Ping timeout: 246 seconds]
<jtojnar> worldofpeace I filtered out none+none but now I am seeing the error "No desktop session packages installed"
<jtojnar> and I am not sure what else defaultSession should default to
octe has joined #nixos-dev
<jtojnar> on unstable dm & wm default to "" & "none" when none are enabled
<jtojnar> so yeah, we probably could get away with null instead of ""
<jtojnar> but there are so many places we are expecting session to exist
<jtojnar> maybe we can just require it
<jtojnar> do you know if there is some use case for running a display manager without any sessions installed? Maybe remote sessions only?
<worldofpeace> I'm not sure about that being a requirement, display managers want to select a default from the users last selected session. would that make it someone has to use the option? or maybe I'm forgetting the config keys in dm's are discarded if there's a cached default from accountsservice. but I don't really think nixos needs to do anything like that.
<worldofpeace> Jan Tojnar: I think it it's possible then there could be a use case
<jtojnar> Hmm, I wonder why does defaultSession even need a default value
<worldofpeace> default -> apply? it's optional to specify a default session, and I don't think it persists because dms seem to prefer state from accountsservice.
<worldofpeace> so it's even more like an intial default. if you were to wipe out your state then it would be selected
marek has quit [Ping timeout: 246 seconds]
<jtojnar> worldofpeace I think `default = null` would work best
<jtojnar> I see no use for having the default set automatically by the module system, the display manager can do that
gustavderdrache has quit [Quit: Leaving.]
<jtojnar> and we already have assertions for autologin for DMs that need it
<jtojnar> worldofpeace only I have no idea what to do about the dex case now
<jtojnar> git commit --fixup HEAD^^^^^^^^^^^^^^
<jtojnar> rs to the top so that empty desktops drv can be produced
<jtojnar> s/rs/in the end, I moved mkdirs/
<jtojnar> right, GDM cannot start when there are no sessions, since it uses GNOME Shell for ui
<worldofpeace> I just realized GDM would also be the only case where the default you specify will always be that default because of the set-session script we have
<jtojnar> indeed
orivej has joined #nixos-dev
<worldofpeace> I've also noticed that .xsession-errors never has any errors in it, I'm not sure we redirect it properly or something