Skip to content
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

Support building with flakes #854

Open
codygman opened this issue Apr 16, 2021 · 2 comments
Open

Support building with flakes #854

codygman opened this issue Apr 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@codygman
Copy link

It failed for me with:

✖1 ❯ sudo nix shell ".#nixosConfigurations.tower.config.system.build.toplevel" -c switch-to-configuration switch
warning: Git tree '/home/cody/devos2' is dirty
error: attribute 'currentSystem' missing

       at /nix/store/fk1pqfl3qv5r5jaf0lq1xzxnlzj13b2q-source/default.nix:1:12:

            1| { system ? builtins.currentSystem
             |            ^
            2| , profiling ? false
(use '--show-trace' to show detailed location information)

Maybe user error, or maybe changes need made for obelisk to work on flake-based systems?

@ikervagyok
Copy link

You could try adding --impure to your command line. It helped me with flakes, but I have no reflex/obelisk project using flakes (yet) to test this.

@madeline-os madeline-os added the enhancement New feature or request label May 12, 2022
@chuahou
Copy link

chuahou commented Aug 13, 2022

Currently, when attempting to build command in pure evaluation mode, the first issue I encounter is

error: the path '~/.gitconfig' can not be resolved in pure mode

which is an issue with the combination of newer nixes and gitignore.nix. It's been fixed in the latter (see this PR), so patching dep/gitignore.nix/github.json gets around then.

The next issue I've encountered, which I've not found a way to work around, is the import <nixpkgs>s littered all around both obelisk and reflex-platform.

I will try using impure evaluation for now, but it would be nice to figure out a way to get pure evaluation to work in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants