Skip to content

Commit

Permalink
template: Add om tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 8, 2024
1 parent 06648e0 commit 3c4428a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,25 @@
value = false;
}
];
tests = {
default = {
params = {
username = "john";
git-email = "john@ex.com";
git-name = "John Doe";
neovim = true;
};
asserts = {
source = {
"modules/home/neovim/default.nix" = true;
".github/workflows" = false;
};
packages."homeConfigurations.john.activationPackage" = {
"home-path/bin/nvim" = true;
};
};
};
};
};

nixos = {
Expand Down

0 comments on commit 3c4428a

Please sign in to comment.