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

self behavior breaks when used in flake #56

Open
Eviepayne opened this issue Dec 16, 2024 · 0 comments
Open

self behavior breaks when used in flake #56

Eviepayne opened this issue Dec 16, 2024 · 0 comments

Comments

@Eviepayne
Copy link

When deploying a system with .#apps.nixinate.servername
self is not evaluated correctly.

In my flake im using:

let
  revision = if self ? rev then self.rev else self.dirtyRev;
  ...
in {
...
modules = [ { system.configurtationRevision = revision; } ];
...
}

When I build with the native nixos-rebuild --target-host this works flawlessly and builds

When using nixinate it fails:
error: attribute 'dirtyRev' missing
meaning both self.rev and self.dirtyRev are not in self

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

No branches or pull requests

1 participant