!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

145 Members
29 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Jul 2025
@x10an14:matrix.orgx10an14

I know that, but again, I'm asking here because I don't know what I should be exploring. There's something missing in my mental model, and I'm here asking for a nudge in the right direction^^

Answering your suggestion on using the nix repl directly, how can I in the repl explore what the config attribute w/the comments look like? I only know how to explore evaluated configs/outputs in the repl

15:06:31
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat
          {
            name,
            username, # <- I want access to these, that live under `config.flake.modules.x10.device-configs.<a device>,`
            hostname, # <- I want access to these, that live under `config.flake.modules.x10.device-configs.<a device>,`
            system, # <- I want access to these, that live under `config.flake.modules.x10.device-configs.<a device>,`
            ...
          }:
let
  ihnerit (config.flake.modules.x10.device-config.${name}) username;
in
          {
            options.homeManager = {
15:06:44
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat *
          {
            name,
            ...
          }:
let
  ihnerit (config.flake.modules.x10.device-config.${name}) username;
in
          {
            options.homeManager = {
15:06:54
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chathow about that?15:07:01
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat *
          {
            name,
            ...
          }:
let
  inherit (config.flake.modules.x10.device-config.${name}) username;
in
          {
            options.homeManager = {
15:07:07
@x10an14:matrix.orgx10an14 Gotcha. Just managed to put 2+2 together with your previous mention of fooConf.${name}. I got infinite recursion error 15:09:37
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chatyeah i hope that makes sense why you got infinite recursion error15:10:34
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat* yeah i hope that it makes sense why you got infinite recursion error15:10:45
@x10an14:matrix.orgx10an14 I got it to work with lots of help from @mightyiam:matrix.org (thanks)! =) 17:11:02
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chatnice what did you do?22:12:49

Show newer messages


Back to Room ListRoom Version: 10