Eror nix - home-manager rebild

GitHub - yakatze/nixos

error:
       … while calling the 'seq' builtin
         at /nix/store/50w2kcwpvs2p0n4waldx0ci9y6qdig27-source/lib/modules.nix:360:18:
          359|         options = checked options;
          360|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          361|         _module = checked (config._module);

       … while calling the 'throw' builtin
         at /nix/store/50w2kcwpvs2p0n4waldx0ci9y6qdig27-source/lib/modules.nix:331:13:
          330|           else
          331|             throw baseMsg
             |             ^
          332|         else

       error: The option `dconf' does not exist. Definition values:
       - In `/nix/store/4gq3i74ps9kzc9pspqr5a7z2mbrs9raw-source/home/app/gnome.nix':
           {
             settings = {
               "org/gnome/TextEditor" = {
                 custom-font = "Maple Mono 15";
                 highlight-current-line = true;

Remove ./home from the modules section in your flake.nix. It contains Home Manager options and is already being imported correctly in nix/app/user.nix. This is what’s causing that error.

1 Like

Seems like you are importing a home-manager module into your nixos top-level instead of via home-manager.users.<user>.imports.

Looking at the code, I can see that you are actually doing it correctly in this file: nixos/nix/app/user.nix at 0df7b504b20ea69d098d17d3857e7ca1d205edd1 · yakatze/nixos · GitHub

But then you are importing it a second time in your flake.nix (Remove this import): nixos/flake.nix at 0df7b504b20ea69d098d17d3857e7ca1d205edd1 · yakatze/nixos · GitHub

What made me suspicious, is that dconf exists as an option in home-manager, but the error above indicates that a module tries to set it at the top-level of your nixos config.

1 Like
evaluation warning: The option `services.xserver.displayManager.sessionPackages' defined in `/nix/store/5vx5r07fx9qjmmyrb4ihqyv5jikyi7ph-source/nix/desktop/hyprland.nix' has been renamed to `services.displayManager.sessionPackages'.
error: builder for '/nix/store/850lzifnq3fygb0008q2ha594nj0pgnm-nvidia-x11-565.77-6.14.6.drv' failed with exit code 2;
       last 25 log lines:
       >   CC [M]  nvidia-drm/nvidia-drm-utils.o
       >   CC [M]  nvidia-drm/nvidia-drm-crtc.o
       >   CC [M]  nvidia-drm/nvidia-drm-encoder.o
       >   CC [M]  nvidia-drm/nvidia-drm-connector.o
       >   CC [M]  nvidia-drm/nvidia-drm-gem.o
       >   CC [M]  nvidia-drm/nvidia-drm-fb.o
       >   CC [M]  nvidia-drm/nvidia-drm-modeset.o
       >   CC [M]  nvidia-drm/nvidia-drm-fence.o
       > nvidia-drm/nvidia-drm-drv.c:1907:6: error: 'struct drm_driver' has no member named 'date'
       >  1907 |     .date                   = "20160202",
       >       |      ^~~~
       > nvidia-drm/nvidia-drm-drv.c:1907:31: warning: initialization of 'unsigned int' from 'char *' makes integer from pointer without a cast []
       >  1907 |     .date                   = "20160202",
       >       |                               ^~~~~~~~~~
       > nvidia-drm/nvidia-drm-drv.c:1907:31: note: (near initialization for 'nv_drm_driver.driver_features')
       > nvidia-drm/nvidia-drm-drv.c:1907:31: error: initializer element is not computable at load time
       > nvidia-drm/nvidia-drm-drv.c:1907:31: note: (near initialization for 'nv_drm_driver.driver_features')
       > make[4]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/scripts/Makefile.build:207: nvidia-drm/nvidia-drm-drv.o] Error 1
       > make[4]: *** Waiting for unfinished jobs....
       > make[3]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/Makefile:1995: .] Error 2                                   > make[2]: *** [/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source/Makefile:251: __sub-make] Error 2                           > make[2]: Leaving directory '/build/NVIDIA-Linux-x86_64-565.77/kernel'
       > make[1]: *** [Makefile:251: __sub-make] Error 2
       > make[1]: Leaving directory '/nix/store/9iyrm7x93rbpijr4g1zxl4ak56f0c199-linux-zen-6.14.6-dev/lib/modules/6.14.6-zen1/source'
       > make: *** [Makefile:115: modules] Error 2
       For full logs, run 'nix log /nix/store/850lzifnq3fygb0008q2ha594nj0pgnm-nvidia-x11-565.77-6.14.6.drv'.
error: 1 dependencies of derivation '/nix/store/k7i5ncrmaf6bikxipg3z4hy0m33bg750-etc.drv' failed to build                                                                   error: 1 dependencies of derivation '/nix/store/s5xccjnfmj3mwj127fk9ncnj910ci9fz-firmware.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8gqiw220kj1zmb0jmqxlsvxd9lpwl5wf-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qniff0q41kihb0zjdc67v9j2f8zpirxz-nixos-system-nixos-24.11.20250517.9b5ac7a.drv' failed to build