chore: Add missing imports to tests

Necessary since system now depends on home-manager and desktop depends
on stylix, which also depends on home-manager.

Note that since conditional imports can't be used and we include the
system module inside of our containers which don't have access to self,
importing the required modules inside the module itself cannot be used.
This commit is contained in:
Donovan Glover 2024-04-05 09:02:00 -04:00
parent 83314da967
commit 267dda3224
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 15 additions and 10 deletions

View File

@ -1,12 +1,15 @@
# TODO: Write test to ensure that Hyprland starts with basic config
(import ./lib.nix) {
let
inherit (builtins) attrValues;
in (import ./lib.nix) {
name = "hyprland";
nodes.machine = { self, pkgs, ... }: {
imports = with self.nixosModules; [
system
desktop
];
imports = attrValues {
inherit (self.inputs.home-manager.nixosModules) home-manager;
inherit (self.inputs.stylix.nixosModules) stylix;
inherit (self.nixosModules) system desktop;
};
};
testScript = /* python */ ''

View File

@ -1,12 +1,14 @@
# TODO: Ensure that neovim config works without errors on startup
(import ./lib.nix) {
let
inherit (builtins) attrValues;
in (import ./lib.nix) {
name = "neovim";
nodes.machine = { self, pkgs, ... }: {
imports = with self.nixosModules; [
system
shell
];
imports = attrValues {
inherit (self.inputs.home-manager.nixosModules) home-manager;
inherit (self.nixosModules) system shell;
};
};
testScript = /* python */ ''