flake/tests: add missing imports

This commit is contained in:
raf 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,13 +13,16 @@ nixosTest {
../profiles/minimal.nix
];
home-manager = {
sharedModules = [
homeManagerModules.nvf
];
config = {
home-manager = {
sharedModules = [
homeManagerModules.nvf
];
users.test = {
programs.nvf.enable = true;
users.test = {
home.stateVersion = "24.05";
programs.nvf.enable = true;
};
};
};
};

View file

@ -4,7 +4,7 @@
...
}:
nixosTest {
name = "home-manager-test";
name = "nixos-test";
nodes.machine = {
imports = [
@ -12,7 +12,9 @@ nixosTest {
../profiles/minimal.nix
];
programs.nvf.enable = true;
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";}
];
}