flake/tests: add missing imports

This commit is contained in:
NotAShelf 2024-05-06 16:43:05 +03:00
parent 3aa02e8524
commit 198a36f3d4
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
6 changed files with 44 additions and 13 deletions

View file

@ -84,6 +84,26 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1714981474,
"narHash": "sha256-b3/U21CJjCjJKmA9WqUbZGZgCvospO3ArOUTgJugkOY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "6ebe7be2e67be7b9b54d61ce5704f6fb466c536f",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"naersk": {
"inputs": {
"nixpkgs": [
@ -1804,6 +1824,7 @@
"inputs": {
"flake-parts": "flake-parts",
"flake-utils": "flake-utils",
"home-manager": "home-manager",
"nil": "nil",
"nixpkgs": "nixpkgs",
"nmd": "nmd",

View file

@ -89,6 +89,12 @@
flake = false;
};
# Primarily used for testing nvf.
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO: get zig from the zig overlay instead of nixpkgs
zig.url = "github:mitchellh/zig-overlay";

View file

@ -13,16 +13,19 @@ nixosTest {
../profiles/minimal.nix
];
config = {
home-manager = {
sharedModules = [
homeManagerModules.nvf
];
users.test = {
home.stateVersion = "24.05";
programs.nvf.enable = true;
};
};
};
};
testScript = "";
}

View file

@ -4,7 +4,7 @@
...
}:
nixosTest {
name = "home-manager-test";
name = "nixos-test";
nodes.machine = {
imports = [
@ -12,8 +12,10 @@ nixosTest {
../profiles/minimal.nix
];
config = {
programs.nvf.enable = true;
};
};
testScript = "";
}

View file

@ -26,6 +26,9 @@
};
# expose checks as packages to be built
packages.test = self'.checks.home-manager-test.driverInteractive;
packages = {
test-home-manager-module = self'.checks.homeManagerModule.driverInteractive;
test-nixos-module = self'.checks.nixosModule.driverInteractive;
};
};
}

View file

@ -10,8 +10,4 @@
isNormalUser = true;
password = "";
};
home-manager.sharedModules = [
{home.stateVersion = "24.05";}
];
}