!9IQChSjwSHXPPWTa:lix.systems

Lix

1124 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms311 Servers

Load older messages


SenderMessageTime
23 Mar 2026
@llakala:matrix.orgllakala* of course you can access it when its in an attrset via attr selection15:18:46
@llakala:matrix.orgllakalabut i wasn't sure if you could access it when it's not selectable15:18:54
@llakala:matrix.orgllakala then a friend of mine had a great idea - inherit 15:19:06
@k900:0upti.meK900Oh that's disgusting15:19:23
@llakala:matrix.orgllakala
let
  "" = 5;
  x = {
    inherit "";
  };
in x."" # 5
15:19:34
@just1602:systemli.orgjust1602That should error out15:19:33
@llakala:matrix.orgllakalathis also works for accessing attributes with spaces in their names15:19:48
@llakala:matrix.orgllakala
let
  "foo bar" = 5;
  x = {
    inherit "foo bar";
  };
in x."foo bar"
```
15:20:03
@llakala:matrix.orgllakala *
let
  "foo bar" = 5;
  x = {
    inherit "foo bar";
  };
in x."foo bar"
15:20:10
@llakala:matrix.orgllakalathe repl also has a neat bug here15:20:15
@llakala:matrix.orgllakala if you define "foo bar" = 1, then tab complete after typing foo, it writes out foo bar 15:20:39
@llakala:matrix.orgllakala lol, "" = 1 also gets added to the list of symbols you can enter 15:22:16
@llakala:matrix.orgllakalait just shows up as an empty line in the completion menu15:22:22
@llakala:matrix.orgllakalaimage.png
Download image.png
15:22:53
@llakala:matrix.orgllakalathat's before15:22:57
@llakala:matrix.orgllakalaimage.png
Download image.png
15:23:16
@llakala:matrix.orgllakalaand that's after15:23:18
@piegames:flausch.socialpiegamesYes, these are all known glitches in the language unfortunately15:28:53
@nxrth:beeper.comboop-northI have somehow made my nix daemon not be on 24/7, my systemctl does not have the service file at all . I got it working by doing sudo nix daemon, could anyone help me with setting up the service again?16:17:27
@nxrth:beeper.comboop-norththis happened when I was trying to run nix-shell using a systemctl service.16:18:30
@whispers:catgirl.cloudwhispers [& it/fae]Redacted or Malformed Event16:22:06
@whispers:catgirl.cloudwhispers [& it/fae] since recent updates, lix (by default) uses socket activation from template units with nix-daemon@.service, if that's what you mean 16:23:21
@whispers:catgirl.cloudwhispers [& it/fae] since recent updates (2.95), lix (by default) uses socket activation from template units with nix-daemon@.service, if that's what you mean 16:23:33
@whispers:catgirl.cloudwhispers [& it/fae]Redacted or Malformed Event16:23:53
@whispers:catgirl.cloudwhispers [& it/fae]* see "Lix daemons are now fully socket-activated on systemd setups" at https://git.lix.systems/lix-project/lix/src/branch/release-2.95/doc/manual/src/release-notes/rl-2.95.md16:23:59
@whispers:catgirl.cloudwhispers [& it/fae] since recent updates (2.95), lix (by default) uses socket activation from template units with nix-daemon@.service, if that's what you mean. it's not a bug 16:24:52
@k900:0upti.meK900That's normal on recent Lix16:26:46
@k900:0upti.meK900It should be socket activated16:26:50
@nxrth:beeper.comboop-northHow do I set that up, I keep getting a socket error whenever I try to do anything16:30:18
@k900:0upti.meK900 What does systemctl status nix-daemon.socket say? 16:32:32

Show newer messages


Back to Room ListRoom Version: 10