| 27 Feb 2026 |
hsjobeki | submodule ({ name, ... }: ... } | 22:54:00 |
hsjobeki | Or did you mean another attributeName? | 22:55:00 |
hsjobeki | * submodule ({ name, ... }: ... your options }) | 22:57:09 |
hsjobeki | in fact name is always available in submodules, but it needs to be explicitly destructured in functionargs of a module.
If not destructured it's not passed. So a module like
moduleArgs: { .... } won't have it | 22:59:46 |
hexa | nah, the servers.${name} = { // name in here | 23:10:04 |
hexa | ok, thx! | 23:10:14 |
| 1 Mar 2026 |
| Robin V. joined the room. | 01:16:46 |
| 2 Mar 2026 |
| ·☽•Nameless☆•777 · ± changed their profile picture. | 12:48:46 |
| ·☽•Nameless☆•777 · ± changed their profile picture. | 13:05:59 |
| the_dieselpunk joined the room. | 20:38:23 |
| 4 Mar 2026 |
| ·☽•Nameless☆•777 · ± changed their profile picture. | 03:13:06 |
| lukas joined the room. | 22:16:32 |
| 5 Mar 2026 |
| @mtheil:scs.ems.host changed their display name from Markus Theil to Markus Theil (SCS). | 09:34:45 |
| 8 Mar 2026 |
| SomeoneSerge (migrating synapse) changed their display name from SomeoneSerge (back on matrix) to SomeoneSerge (matrix works sometimes). | 23:31:19 |
| 9 Mar 2026 |
| FOSSASIA Demo joined the room. | 10:03:27 |
| 10 Mar 2026 |
| amadaluzia joined the room. | 07:18:37 |
| Crony Akatsuki (balkan/slav) changed their display name from Crony Akatsuki to Crony Akatsuki (balkan/slav) . | 10:41:49 |
| @mtheil:scs.ems.host left the room. | 14:48:16 |
| 8 Feb 2024 |
| zrsk joined the room. | 10:38:02 |
| 15 Feb 2024 |
| a-kenji joined the room. | 19:15:14 |
| 16 Feb 2024 |
| Qyriad joined the room. | 14:56:15 |
| mr-qubo joined the room. | 14:59:24 |
mr-qubo | I recently stumbled upon similar issue when working on home-manager. https://discourse.nixos.org/t/is-it-possible-to-define-systemd-services-in-a-submodule/39538/5
The idea is that enabling https://nix-community.github.io/home-manager/options.xhtml#opt-programs.bash.enableCompletion should set environment.pathsToLink = [ "/share/bash-completion" ];.
I think that module system is missing an option to pass config options recursively up to all ancestors.
| 15:06:01 |
mr-qubo | My idea is that nixos config could have a property extraNixosChildConfig and in home-manager bash module I could set _recurseAncestors = { extraNixosChildConfig = { environment.pathsToLink = [ ... ]; }; }. | 15:07:22 |
mr-qubo | wdyt? | 15:07:26 |
mr-qubo | * My idea is that nixos config could have a property extraNixosChildConfig that gets merged with the rest of the config and in home-manager bash module I could set _recurseAncestors = { extraNixosChildConfig = { environment.pathsToLink = [ ... ]; }; }. | 15:07:44 |
mr-qubo | * My idea is that nixos config could pick up extraNixosChildConfig from childs and merge it with the rest of the config and in home-manager bash module I could set _recurseAncestors = { extraNixosChildConfig = { environment.pathsToLink = [ ... ]; }; }. | 15:08:21 |
infinisil | Not sure about that recursive thing, that doesn't seem necessary, but yeah if there's something missing in the NixOS module for home-manager, that could be added | 15:34:09 |
infinisil | Sounds like an issue for the home-manager repo | 15:34:16 |
mr-qubo | Yeah, we could add it just for home-manager. But is seems like the issue is quite generic. See also https://github.com/NixOS/nixpkgs/pull/152785. | 15:51:50 |