ublue-os / fleek

[deprecated] Own your $HOME
https://getfleek.dev
Apache License 2.0
833 stars 24 forks source link

error: flake 'git+file:///home/user/.local/share/fleek' does not provide attribute #230

Open dhassault opened 1 year ago

dhassault commented 1 year ago

Describe the bug

To Reproduce I updated my fleek config on one computer (macos). Then on another computer (popos), I run:

❯ fleek update
 [*]  Update package index
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 59 (delta 48), reused 33 (delta 22), pack-reused 0
Unpacking objects: 100% (59/59), 7.74 KiB | 528.00 KiB/s, done.
From github.com:dhassault/fleek-config
 * branch            main       -> FETCH_HEAD
   4e1ba12..029690e  main       -> origin/main
Updating 4e1ba12..029690e
Fast-forward
 .fleek.yml                            | 15 ++++++++++-----
 aliases.nix                           |  2 +-
 flake.lock                            | 18 +++++++++---------
 flake.nix                             |  9 +++------
 home.nix                              | 10 ++++++----
 users-MBP/{user.nix => host.nix}      |  0
 users-MBP/{users-MBP.nix => user.nix} |  0
 users-MacBook-Pro.local/custom.nix    |  5 +++++
 users-MacBook-Pro.local/user.nix      | 29 +++++++++++++++++++++++++++++
 9 files changed, 63 insertions(+), 25 deletions(-)
 rename users-MBP/{user.nix => host.nix} (100%)
 rename users-MBP/{users-MBP.nix => user.nix} (100%)
 create mode 100644 users-MacBook-Pro.local/custom.nix
 create mode 100644 users-MacBook-Pro.local/user.nix
 [i]  Updating flake sources
warning: updating lock file '/home/user/.local/share/fleek/flake.lock':
• Updated input 'home-manager':
    'github:nix-community/home-manager/f06a43dca05fb7f1aa44742bf861d9c827b45122' (2023-06-19)
  → 'github:nix-community/home-manager/9a76fb9a852fdf9edd3b0aabc119efa1d618f969' (2023-06-20)
warning: Git tree '/home/user/.local/share/fleek' is dirty
[main 131e4f3] fleek: update flake.lock
 1 file changed, 3 insertions(+), 3 deletions(-)
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 16 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 645 bytes | 645.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:dhassault/fleek-config.git
   029690e..131e4f3  main -> main
 [!]  Run the `apply` command to apply these updates
 [✓]  Update complete.

Then apply:

❯ fleek apply
 [*]  Apply fleek configuration
From github.com:dhassault/fleek-config
 * branch            main       -> FETCH_HEAD
Already up to date.
 [✓]  Writing configuration files                                                                                                              
[main 86f6a21] fleek: apply
 2 files changed, 6 insertions(+), 3 deletions(-)
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 16 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 668 bytes | 668.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To github.com:dhassault/fleek-config.git
   131e4f3..86f6a21  main -> main
 [i]  Applying configuration
error: flake 'git+file:///home/user/.local/share/fleek' does not provide attribute 'packages.x86_64-linux.homeConfigurations."user@flow-x13".activationPackage', 'legacyPackages.x86_64-linux.homeConfigurations."user@flow-x13".activationPackage' or 'homeConfigurations."user@flow-x13".activationPackage'
  ERROR   
  ERROR   Error: exit status 1
  ERROR   
  ERROR   
  ERROR   Error: 
  ERROR   
  ERROR   There was an internal error. Run with FLEEK_DEBUG=1 for a detailed error message, and consider reporting it at https://github.com/ublue-os/fleek/issues

Expected behavior A clear and concise description of what you expected to happen.

Environment

bketelsen commented 1 year ago

is your fleek repository public? I think it might be useful to see the status of your configs to help debug this.

dhassault commented 1 year ago

is your fleek repository public? I think it might be useful to see the status of your configs to help debug this.

Here it is: https://github.com/dhassault/fleek-config

Thank you for your support.

brianjriddle commented 1 year ago

I ran into this issue as well after a fleek update. i even tried nix run "https://getfleek.dev/latest.tar.gz" -- update

and

nix build ".#${USER}@$(uname -n).activationPackage"

was able to get it working by just trying

fleek apply