-
Notifications
You must be signed in to change notification settings - Fork 33
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
add format check for services flake in dev/flake.nix #104
Conversation
test/flake.nix
Outdated
_module.args.pkgs = import inputs.nixpkgs { | ||
inherit system; | ||
# Required for elastic search | ||
config.allowUnfree = true; | ||
}; | ||
treefmt = { | ||
projectRootFile = "flake.nix"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
projectRootFile = "flake.nix"; | |
projectRoot = inputs.services-flake; | |
projectRootFile = "flake.nix"; |
Like this you might not need to create another check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i'll give it a try
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivaraj-bh this suggestion works. Although I had another concern. I am having to define treefmt.programs
twice. once in dev/flake.nix
and then again in test/flake.nix
. Is there a way I could get the programs as well from the ${inputs.services-flake}/dev/flake.nix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just add services-flake
in inputs of ./dev/flake.nix
? and it should work without having to make any changes in ./test/flake.nix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i'll try that only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this works out you can make the change in #103
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding to services-flake
to ./dev/flake.nix
works. i've pushed that change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding
check
intest/flake.nix
checks for the formatting across services flake