Skip to content

Commit

Permalink
add nixos test
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 9, 2024
1 parent b6b6c25 commit 6a2c164
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,19 @@
placeholder = "example";
}
] ++ om.templates.home.params;
tests = {
default = {
params = om.templates.home.tests.default.params // {
hostname = "example";
};
asserts = {
source = { };
packages."nixosConfigurations.example.config.system.build.toplevel" = {
"etc/profiles/per-user/john/bin/git" = true;
};
};
};
};
};

darwin = {
Expand Down

0 comments on commit 6a2c164

Please sign in to comment.