| 8 Dec 2021 |
hpfr | looks like you're using environment.systemPackages | 00:38:22 |
Jan Tojnar | nixpkgs.config work by having the module system instantiate pkgs, I do it myself | 00:39:02 |
Jan Tojnar | * nixpkgs.config works by having the module system instantiate pkgs, I do it myself | 00:39:12 |
hpfr | oh | 00:39:31 |
Jan Tojnar | I guess I could do
(firefox-wayland.override (args: args // {
cfg = args.cfg or {} // config.nixpkgs.config.firefox;
}))
| 00:41:08 |
Jan Tojnar | In reply to @hpfr:matrix.org I think I'm going to have to do an overlay of the wrapper anyway to add pkgs.gnomeExtensions.gsconnect to extraNativeMessagingHosts, right? oh right, that is not actually obtained from config – I think that is inconsistency that could be fixed | 00:45:13 |
hpfr | it looks like there is a pkgs.wrapFirefox I'm probably gonna use to add pkgs.gnomeExtensions.gsconnect https://nixos.wiki/wiki/Firefox | 00:45:31 |
hpfr | Jan Tojnar: in the firefox wrapper you linked, why do they sometimes or booleans with false? isn't that a no op? they do it for like half of the lib.optional calls around there but not all of them? | 00:55:13 |
hpfr | https://github.com/NixOS/nixpkgs/blob/3173e260e8cc39d64af753edb2bbdc01039c7efb/pkgs/applications/networking/browsers/firefox/wrapper.nix#L64 | 00:55:34 |
hpfr | actually they do it for all the booleans from config, so I guess those can be null when undefined? I figured they'd just be false... | 00:56:33 |
Jan Tojnar | In reply to @hpfr:matrix.org actually they do it for all the booleans from config, so I guess those can be null when undefined? I figured they'd just be false... it is a part of the attribute access syntax (the EBNF is<set> '.' <attr> ['or' <fallback>), you would get attribute missing error otherwise | 01:28:30 |
Jan Tojnar | In reply to @hpfr:matrix.org actually they do it for all the booleans from config, so I guess those can be null when undefined? I figured they'd just be false... * it is a part of the attribute access syntax (the EBNF is<set> '.' <attr> ['or' <fallback>]), you would get attribute missing error otherwise | 01:28:47 |
| Tyler joined the room. | 04:19:20 |
Tyler | Hi. New here, and pretty new to Nix altogether. I'm trying to build libvte from github (devel version) with sixel enabled.
I've looked at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/vte/default.nix, but it's not at all clear where the actual meson call or how to add configuration options to it.
Would appreciate some help. | 04:23:02 |
Tyler | * Hi. New here, and pretty new to Nix altogether. I'm trying to build libvte from github (devel version) with sixel enabled.
I've looked at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/vte/default.nix, but it's not at all clear where the actual meson call is or how to add configuration options to it.
Would appreciate some help. | 04:23:29 |
hpfr | In reply to @jtojnar:matrix.org you can just set it in nixpkgs.config https://github.com/NixOS/nixpkgs/blob/25a431819b54389580f629e1e2e6fdbc4d8632d4/nixos/modules/services/desktops/gnome/chrome-gnome-shell.nix#L39 on second glance it looks like this enableGnomeExtensions option just adds chrome-gnome-shell as a firefox native messenger, which just allows for installing gnome extensions from a browser, which I think I wouldn't even want to do because I want them in my NixOS config? to clarify, I already have GSConnect installed via my NixOS config. also, I think that's already enabled since the gnome module enables chrome-gnome-shell as part of core-shell | 04:37:59 |
hpfr | anyway, I wrapped firefox with tridactyl-native and gnomeExtensions.gsconnect as native messengers, but Tridactyl still thinks the native messenger isn't installed. I install Firefox extensions through Firefox, do I have to install them via Nix to get everything working? it doesn't seem like it since the GSConnect Firefox extension now seems to somewhat work | 04:39:40 |
hpfr | * ~~anyway, I wrapped firefox with tridactyl-native and gnomeExtensions.gsconnect as native messengers, but Tridactyl still thinks the native messenger isn't installed. I install Firefox extensions through Firefox, do I have to install them via Nix to get everything working? it doesn't seem like it since the GSConnect Firefox extension now seems to somewhat work~~ not a config issue. tridactyl has moved to a new native messenger, so nix's package is out of date | 05:16:04 |
hpfr | * anyway, I wrapped firefox with tridactyl-native and gnomeExtensions.gsconnect as native messengers, but Tridactyl still thinks the native messenger isn't installed. I install Firefox extensions through Firefox, do I have to install them via Nix to get everything working? it doesn't seem like it since the GSConnect Firefox extension now seems to somewhat work not a config issue. tridactyl has moved to a new native messenger, so nix's package is out of date | 05:16:21 |
Jan Tojnar | In reply to @hpfr:matrix.org on second glance it looks like this enableGnomeExtensions option just adds chrome-gnome-shell as a firefox native messenger, which just allows for installing gnome extensions from a browser, which I think I wouldn't even want to do because I want them in my NixOS config? to clarify, I already have GSConnect installed via my NixOS config. also, I think that's already enabled since the gnome module enables chrome-gnome-shell as part of core-shell yeah, I was mistaken, extraNativeMessagingHosts cannot be set through nixpkgs.config | 09:53:35 |
hpfr | thanks for the info | 16:00:15 |
| 9 Dec 2021 |
uep | Suddenly display-manager is failing | 01:27:21 |
uep | "Oh no! Something has gone wrong." | 01:27:51 |
uep | rolling back to a previous generation (including the previous last-booted one) doesn't help, so there's some persistent state somewhere that's mangled | 01:28:35 |
uep | Some of these are not new errors, but.. seems bad..
Dec 09 12:35:38 oenone systemd[1]: Starting X11 Server...
Dec 09 12:35:38 oenone systemd[1]: Started X11 Server.
Dec 09 12:35:38 oenone systemd-logind[3083]: New session c5 of user gdm.
Dec 09 12:35:38 oenone systemd[1]: Started Session c5 of User gdm.
Dec 09 12:35:38 oenone gnome-session[49084]: gnome-session-binary[49084]: WARNING: Failed to upload environment to systemd: >
Dec 09 12:35:38 oenone gnome-session-binary[49084]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freede>
Dec 09 12:35:38 oenone gnome-session[49084]: gnome-session-binary[49084]: WARNING: Failed to reset failed state of units: GD>
Dec 09 12:35:38 oenone gnome-session-binary[49084]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesk>
Dec 09 12:35:38 oenone gnome-session[49084]: gnome-session-binary[49084]: WARNING: Falling back to non-systemd startup proce>
Dec 09 12:35:38 oenone gnome-session-binary[49084]: WARNING: Falling back to non-systemd startup procedure due to error: GDB>
Dec 09 12:35:38 oenone gnome-session-binary[49084]: Entering running state
Dec 09 12:35:38 oenone gnome-session[49092]: Unable to init server: Could not connect: Connection refused
Dec 09 12:35:38 oenone gnome-session-f[49092]: Cannot open display:
Dec 09 12:35:39 oenone /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-wayland-session[49083]: dbus-daemon[>
Dec 09 12:35:39 oenone /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-wayland-session[49083]: dbus-daemon[>
Dec 09 12:35:39 oenone gdm[49071]: Gdm: GdmDisplay: Session never registered, failing
Dec 09 12:35:39 oenone gdm-launch-environment][49075]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Dec 09 12:35:39 oenone systemd[1]: session-c5.scope: Deactivated successfully.
Dec 09 12:35:39 oenone systemd-logind[3083]: Session c5 logged out. Waiting for processes to exit.
Dec 09 12:35:39 oenone systemd-logind[3083]: Removed session c5.
Dec 09 12:35:39 oenone gdm[49071]: Gdm: Child process -49079 was already dead.
Dec 09 12:35:39 oenone gdm[49071]: Gdm: GdmDisplay: Session never registered, failing
Dec 09 12:35:39 oenone gdm[49071]: Gdm: Child process -49079 was already dead.
Dec 09 12:35:39 oenone systemd-logind[3083]: New session c6 of user gdm.
Dec 09 12:35:39 oenone systemd[1]: Started Session c6 of User gdm.
| 01:39:11 |
uep | then it goes on with a bunch of X server startup (which is annoying because it should be all wayland) | 01:39:40 |
uep | * Some of these are not new errors, but.. seems bad..
Dec 09 12:42:04 oenone systemd[1]: Starting X11 Server...
Dec 09 12:42:04 oenone systemd[1]: Started X11 Server.
Dec 09 12:42:04 oenone systemd-logind[3083]: New session c7 of user gdm.
Dec 09 12:42:04 oenone systemd[1]: Started Session c7 of User gdm.
Dec 09 12:42:04 oenone gnome-session[50328]: gnome-session-binary[50328]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session-binary[50328]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session[50328]: gnome-session-binary[50328]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session-binary[50328]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session[50328]: gnome-session-binary[50328]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session-binary[50328]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 09 12:42:04 oenone gnome-session-binary[50328]: Entering running state
Dec 09 12:42:04 oenone gnome-session[50336]: Unable to init server: Could not connect: Connection refused
Dec 09 12:42:04 oenone gnome-session-f[50336]: Cannot open display:
Dec 09 12:42:05 oenone /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-wayland-session[50327]: dbus-daemon[50327]: [session uid=132 pid=50327] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=132 pid=50328 comm="/nix/store/p1n9zjyh727r1j5p2nnypy2wc6zjsbwr-gnome-" label="kernel")
Dec 09 12:42:05 oenone /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-wayland-session[50327]: dbus-daemon[50327]: [session uid=132 pid=50327] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Dec 09 12:42:05 oenone gdm[50315]: Gdm: GdmDisplay: Session never registered, failing
Dec 09 12:42:05 oenone gdm-launch-environment][50319]: GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Dec 09 12:42:05 oenone systemd[1]: session-c7.scope: Deactivated successfully.
Dec 09 12:42:05 oenone systemd-logind[3083]: Session c7 logged out. Waiting for processes to exit.
Dec 09 12:42:05 oenone systemd-logind[3083]: Removed session c7.
Dec 09 12:42:05 oenone gdm[50315]: Gdm: Child process -50323 was already dead.
Dec 09 12:42:05 oenone gdm[50315]: Gdm: GdmDisplay: Session never registered, failing
Dec 09 12:42:05 oenone gdm[50315]: Gdm: Child process -50323 was already dead.
| 01:44:06 |
uep | and then a repeat of the above, then the fail-whale screen with:
Dec 09 12:42:06 oenone gnome-session-binary[50397]: Entering running state
Dec 09 12:42:06 oenone gnome-session-f[50453]: Could not find the icon 'computer-fail-symbolic'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
just for extra humour value
| 01:45:29 |
uep | In reply to @uep:matrix.org rolling back to a previous generation (including the previous last-booted one) doesn't help, so there's some persistent state somewhere that's mangled Oh! Not quite true. Rolling back (nixos-rebuild switch --rollback) and restarting display-manager.service wasn't working, but rolling back and rebooting works | 02:07:08 |
uep | phew | 02:07:11 |