!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1929 Members
Nix programming language360 Servers

Load older messages


SenderMessageTime
1 Sep 2021
@jtojnar:matrix.orgJan Tojnarrepro, which works with Nix stable but not unstable: https://gist.github.com/jtojnar/e57de7620fdd9b7057f464f44cb3d23a15:41:18
@orpheus1:matrix.orgOrpheus joined the room.18:09:08
@orpheus1:matrix.orgOrpheus left the room.20:10:15
@el_zarco:matrix.orgEl_Zarco joined the room.21:08:48
@el_zarco:matrix.orgEl_Zarco left the room.21:09:13
@el_zarco:matrix.orgEl_Zarco joined the room.21:11:48
2 Sep 2021
@schuelermine:matrix.orgschuelermine As I understand it, with something means that following references will be interpreted as something. + that name. Does this also apply to nested names?
If I say with x; y.z, does this act as y.z or x.y.z?
19:16:01
@jez:petrichor.meJez (he/him) no quite: with x; brings all the attributes of x into scope in addition to everything that was already in scope 19:18:42
@ilkecan:matrix.orgilkecan According to this https://nixos.org/manual/nix/stable/#idm140737321903120, bindings from with doesn't shadow previous ones, so I would expect y.z to have precedence over x.y.z if both exists. But you could easily test this. 19:19:51
@jez:petrichor.meJez (he/him)ah, that's useful, I'd been assuming it was the other way round 19:20:26
@schuelermine:matrix.orgschuelermine

OK, so I can use

environment.gnome.excludePackages = with pkgs; [ gnome.gnome-sound-recorder, xterm ]
```?
19:21:39
@schuelermine:matrix.orgschuelermine *

OK, so I can use

environment.gnome.excludePackages = with pkgs; [ gnome.gnome-sound-recorder, xterm ]
19:21:44
@schuelermine:matrix.orgschuelermine *

OK, so I can use

environment.gnome.excludePackages = with pkgs; [
    gnome.gnome-sound-recorder
    xterm
]
19:21:58
@schuelermine:matrix.orgschuelerminewould that be correct?19:22:11
@schuelermine:matrix.orgschuelerminein a nixos configuration file19:22:27
@ilkecan:matrix.orgilkecanimage.png
Download image.png
19:22:50
@schuelermine:matrix.orgschuelermineOK19:24:06
@ilkecan:matrix.orgilkecan
In reply to @schuelermine:matrix.org

OK, so I can use

environment.gnome.excludePackages = with pkgs; [
    gnome.gnome-sound-recorder
    xterm
]
Sorry, but I couldn't understand how this example and your initial question is related.
19:30:03
@schuelermine:matrix.orgschuelermine I was thinking that this might not work, because it’d look for a variable called gnome in the global scope. 19:30:36
@schuelermine:matrix.orgschuelermineHowever, this conversation has reassured me that it will likely work (since there is no such variable)19:30:56
@jtojnar:matrix.orgJan Tojnar schuelermine: yeah, but that option will not remove xterm 20:32:25
@jtojnar:matrix.orgJan Tojnarit only affects the packages (and not even all) installed by the GNOME NixOS module20:33:05
@schuelermine:matrix.orgschuelermineoh20:52:17
@schuelermine:matrix.orgschuelerminehow can I remove xterm?20:52:24
@schuelermine:matrix.orgschuelermineI don’t want it20:52:27
@jtojnar:matrix.orgJan Tojnarlook for xterm in options search21:48:28
@jtojnar:matrix.orgJan Tojnar * schuelermine: look for xterm in options search 21:49:10
@schuelermine:matrix.orgschuelerminesadly no option that relates directly to xterm21:49:31
@jtojnar:matrix.orgJan Tojnarthere definitely is one21:54:49
@jtojnar:matrix.orgJan Tojnarin desktopManagers IIRC21:54:58

Show newer messages


Back to Room ListRoom Version: 6