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" "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": { "naersk": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -1804,6 +1824,7 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager",
"nil": "nil", "nil": "nil",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nmd": "nmd", "nmd": "nmd",

View File

@ -89,6 +89,12 @@
flake = false; 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 # TODO: get zig from the zig overlay instead of nixpkgs
zig.url = "github:mitchellh/zig-overlay"; zig.url = "github:mitchellh/zig-overlay";

View File

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

View File

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

View File

@ -26,6 +26,9 @@
}; };
# expose checks as packages to be built # 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; isNormalUser = true;
password = ""; password = "";
}; };
home-manager.sharedModules = [
{home.stateVersion = "24.05";}
];
} }