mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 13:20:44 +00:00
flake/tests: add missing imports
This commit is contained in:
parent
3aa02e8524
commit
198a36f3d4
6 changed files with 44 additions and 13 deletions
21
flake.lock
21
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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 = "";
|
||||
}
|
||||
|
|
|
@ -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 = "";
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,8 +10,4 @@
|
|||
isNormalUser = true;
|
||||
password = "";
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{home.stateVersion = "24.05";}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue