mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-23 06:19:00 +00:00
tests: update README and attrset
Even if the home-manager test is pretty useless with the new Nix CLI since it only works on `nix-shell` but could be handy at some point.
This commit is contained in:
parent
f6e6c8c571
commit
7e91c01de6
@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
|
|
||||||
Yes, tests!
|
Yes, tests!
|
||||||
We have tests for the major components of this NixOS configuration including the link:../lib[custom library], link:../modules/nixos[our custom NixOS modules], link:../modules/home-manager[custom home-manager modules], and so on.
|
Because apparently, letting desktop users BE the developers of their own operating system is such as a GOOOOOOOOD idea...
|
||||||
|
|
||||||
|
Anyways, as part of cosplaying of a wannabe developer, we have tests for the major components of this NixOS configuration including the link:../lib[custom library], link:../modules/nixos[our custom NixOS modules], link:../modules/home-manager[custom home-manager modules], and so on.
|
||||||
|
|
||||||
Each of the test suite follows how the upstream does their tests.
|
Each of the test suite follows how the upstream does their tests.
|
||||||
For example, our home-manager module tests just copies what the upstream is doing.
|
For example, our home-manager module tests just copies what the upstream is doing.
|
||||||
@ -14,7 +16,8 @@ You should be able to test them with the following command:
|
|||||||
----
|
----
|
||||||
# These commands assume you're in the project root.
|
# These commands assume you're in the project root.
|
||||||
|
|
||||||
# This test is for home-manager module tests.
|
# This test is for home-manager module tests because it is using nix-lib-nmt
|
||||||
|
# which is only working in pure mode.
|
||||||
nix-shell --pure ./tests/modules/home-manager -A list
|
nix-shell --pure ./tests/modules/home-manager -A list
|
||||||
|
|
||||||
# This is for the library.
|
# This is for the library.
|
||||||
|
@ -2,4 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
lib = import ./lib { inherit pkgs; };
|
lib = import ./lib { inherit pkgs; };
|
||||||
|
modules = {
|
||||||
|
home-manager = import ./modules/home-manager { inherit pkgs; };
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user