| 15 Mar 2026 |
| @jykrwn_bot:matrix.org joined the room. | 00:17:28 |
| pengi joined the room. | 07:21:57 |
| pengi set a profile picture. | 07:52:13 |
| NixOS Moderation Bot banned @jykrwn_bot:matrix.org (disagreement). | 20:28:00 |
| isabel changed their profile picture. | 20:55:08 |
| 16 Mar 2026 |
| purepani changed their display name from purepani to purepanid. | 05:54:53 |
| purepani changed their display name from purepanid to purepani. | 05:55:43 |
| 19 Mar 2026 |
| Miles Dyson set a profile picture. | 18:06:51 |
| 20 Mar 2026 |
| Evrim Ulu joined the room. | 22:13:19 |
| 24 Mar 2026 |
| @brain:matrix.briannelson.dev left the room. | 18:48:18 |
| 25 Mar 2026 |
| Kristo DevOps joined the room. | 21:56:22 |
| 27 Mar 2026 |
| Sapii joined the room. | 22:46:54 |
| Aceroph joined the room. | 23:05:27 |
| 28 Mar 2026 |
| Racci joined the room. | 05:50:48 |
| 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 |
infinisil | Hmm yeah fair. I don't have the capacity to think a lot about this right now, it's a very intricate topic to wrap ones head around | 15:56:55 |
mr-qubo | Yeah, I just wanted to bring the topic, maybe someone has some interesting thoughts. | 16:05:23 |
| Philip Taron (UTC-8) joined the room. | 17:49:31 |
| 20 Feb 2024 |
djacu | I'm reading through the module system deep dive on nix.dev and am wondering if there is a behavioral difference between setting an options default behavior in the config attribute vs the default attribute in mkOption.
this
{
pkgs,
lib,
config,
...
}: {
options = {
scripts.output = lib.mkOption {
type = lib.types.package;
};
};
config = {
scripts.output = pkgs.writeShellApplication {
name = "map";
runtimeInputs = with pkgs; [curl feh];
text = ''
${./map} ${lib.concatStringsSep " "
config.requestParams} | feh -
'';
};
};
}
vs this
{
pkgs,
lib,
config,
...
}: {
options = {
scripts.output = lib.mkOption {
type = lib.types.package;
default = pkgs.writeShellApplication {
name = "map";
runtimeInputs = with pkgs; [curl feh];
text = ''
${./map} ${lib.concatStringsSep " "
config.requestParams} | feh -
'';
};
};
};
}
| 21:39:27 |