!wfudwzqQUiJYJnqfSY:nixos.org

NixOS Module System

147 Members
29 Servers

Load older messages


SenderMessageTime
24 Nov 2025
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chati think hes asking for an opinion about flake.parts18:43:44
26 Nov 2025
@hsjobeki:matrix.orghsjobeki I'd say i don't have a general opinion.
If you develop a third party nix library that other people depend on every input that you have adds to their dependencies as well.
That is how flake dependencies behave. And everyone needs to pin nixpkgs-lib of flake-parts otherwise you get their version, which is an extra 50MB download.
Other than that if you are using it for your own project that doesn't have dependents it is in my opinion a good UX, which lets you leverage the module system to decompose the components of your flake.
16:33:29
@roberthensing:matrix.orgRobert Hensing (roberth) it now uses a small lib-only flake fwiw, but the override still makes sense to have 16:39:27
30 Nov 2025
@3wy-kra:matrix.uni-hannover.deMasen Joumaah joined the room.20:47:28
1 Dec 2025
@brisingr05:matrix.orgBrisingr changed their display name from Brisingr05 to Brisingr.18:39:52
2 Dec 2025
@i-am-logger:matrix.orgIdo Samuelson joined the room.09:35:25
4 Dec 2025
@isabel:isabelroses.comisabel changed their profile picture.16:41:35
6 Dec 2025
@hosaidenpwd:matrix.orgP J joined the room.07:44:51
10 Dec 2025
@jmanch:matrix.orgJManch joined the room.23:23:03
11 Dec 2025
@tg-x:asra.grTG × ⊙ joined the room.19:54:05
13 Dec 2025
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @mightyiam:matrix.org@mightyiam:matrix.org.05:59:21
14 Dec 2025
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat changed their display name from n4ch723hr3r to n4ch723hr3r (stuff in name is cringe).03:42:57
@suua:matrix.orgsuua joined the room.13:29:46
15 Dec 2025
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat changed their display name from n4ch723hr3r (stuff in name is cringe) to MOVED TO n4ch7@n3831.net.00:16:12
16 Dec 2025
@n4ch7:n3831.netn4ch723hr3r (putting stuff in your name is cringe) joined the room.04:30:36
@n4ch723hr3r:nope.chat@n4ch723hr3r:nope.chat left the room.04:30:46
8 Feb 2024
@aciceri:nixos.devzrsk joined the room.10:38:02
15 Feb 2024
@a-kenji:matrix.orga-kenji joined the room.19:15:14
16 Feb 2024
@qyriad:matrix.orgQyriad joined the room.14:56:15
@mr-qubo:matrix.orgmr-qubo joined the room.14:59:24
@mr-qubo:matrix.orgmr-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:matrix.orgmr-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:matrix.orgmr-qubowdyt?15:07:26
@mr-qubo:matrix.orgmr-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:matrix.orgmr-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:matrix.orginfinisilNot 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 added15:34:09
@infinisil:matrix.orginfinisilSounds like an issue for the home-manager repo15:34:16
@mr-qubo:matrix.orgmr-quboYeah, 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:matrix.orginfinisilHmm 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 around15:56:55
@mr-qubo:matrix.orgmr-quboYeah, I just wanted to bring the topic, maybe someone has some interesting thoughts.16:05:23

Show newer messages


Back to Room ListRoom Version: 10