Skip to content

bug: Simple assets not found during build #7089

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
BSD-Yassin opened this issue May 18, 2025 · 0 comments
Open
2 tasks done

bug: Simple assets not found during build #7089

BSD-Yassin opened this issue May 18, 2025 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@BSD-Yassin
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Hello,

I am rebuilding a Nix config I had under a simple configuration.nix. It worked okay for sway under /etc/nixos/configuration.nix, so here I am guess that the home-manager file is the one I'm not mastering properly.

I am in the process of doing that under home-manager and I get this result :

error: builder for '/nix/store/a727cb6r5282y18p53m2j7kbdr2gjavy-sway.conf.drv' failed with exit code 1;
       last 8 log lines:
       > Fontconfig error: No writable cache directories
       > Fontconfig error: No writable cache directories
       > Fontconfig error: No writable cache directories
       > Fontconfig error: No writable cache directories
       > Fontconfig error: No writable cache directories
       > 00:00:00.071 [sway/commands/output/background.c:121] Unable to access background file '/home/yassin/Projects/nixos-config/assets/Bgs/joker.jpg': No such file or directory
       > 00:00:00.071 [sway/config.c:831] Error on line 94 'bg /home/yassin/Projects/nixos-config/assets/Bgs/joker.jpg fill': unable to access background file '/home/yassin/Projects/nixos-con
fig/assets/Bgs/joker.jpg' (/nix/store/g47n2p32p4my41gkl1rf8m5s9b506363-sway.conf)
       > 00:00:00.071 [sway/config.c:441] Error(s) loading config!
       For full logs, run 'nix log /nix/store/a727cb6r5282y18p53m2j7kbdr2gjavy-sway.conf.drv'.
error: 1 dependencies of derivation '/nix/store/fd7p2aczxf90rppgf8q388y81s5gbcmw-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bbc4jjf5z608whc9s94vi89zrfshjy1g-home-manager-generation.drv' failed to build
Uh oh, the installation failed! Please create an issue at

    https://github.com/nix-community/home-manager/issues

if the error seems to be the fault of Home Manager.

Which obviously if I look into the files :

yassin@nixos ~ [1]> ls ./Projects/nixos-config/assets/Bgs/
bloom.jpg  branchrose.jpg  green_circuit.jpg  joker.jpg  treepath.jpg

Obviously if it is not a path issue, I trust that it's a file permission config, but I am not sure to which group and which permission to allow.

Under my sway.nix, here's how I lead towards the path :

   output = {
            "*" = {
              bg = "${config.home.homeDirectory}/Projects/nixos-config/assets/Bgs/joker.jpg fill"
            };

Which is set in my home.nix :

    home.homeDirectory = "/home/yassin";

Maintainer CC

Sorry I gotta admit I don't know how to do that.

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.90, NixOS, 24.11 (Vicuna), 24.11.717984.ba8b70ee098b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.14`
 - channels(root): `"nixos-24.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@BSD-Yassin BSD-Yassin added bug triage Issues or feature request that have not been triaged yet labels May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants