Skip to content

feat(nix): ignore nixos test history#4837

Merged
dooleydevin merged 1 commit intogithub:mainfrom
haras-unicorn:feat-nix-ignore-nixos-test-history
Apr 6, 2026
Merged

feat(nix): ignore nixos test history#4837
dooleydevin merged 1 commit intogithub:mainfrom
haras-unicorn:feat-nix-ignore-nixos-test-history

Conversation

@haras-unicorn
Copy link
Copy Markdown
Contributor

Reasons for making this change

When testing NixOS modules, the interactive test driver leaves us with the .nixos-test-history file. This is common for anyone making NixOS module tests.

Links to documentation supporting these rule changes

This file doesn't seem to be official but here is the line of code which creates it:

If this is a new template

This is not a new template.

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

@haras-unicorn haras-unicorn requested a review from a team as a code owner April 5, 2026 08:13
Copy link
Copy Markdown
Collaborator

@dooleydevin dooleydevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @haras-unicorn! I left one suggestion that may apply here. I'll check back on this tomorrow and approve/merge it whether or not that update is committed 👍

Nix.gitignore Outdated
.direnv

# Ignore NixOS interactive test driver history
.nixos-test-history
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the snippet you provided, it looks like this file shows up in the working directory of wherever the command is run. I'm not too familiar with the tooling, but if that's common you might want this to match in subdirectories too:

Suggested change
.nixos-test-history
**/.nixos-test-history

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right thx :) - i force pushed ur suggestion

@haras-unicorn haras-unicorn force-pushed the feat-nix-ignore-nixos-test-history branch from 6ae5564 to c5bf3ca Compare April 6, 2026 16:38
@dooleydevin dooleydevin merged commit e9c620b into github:main Apr 6, 2026
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

Successfully merging this pull request may close these issues.

2 participants