mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
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:
parent
83314da967
commit
267dda3224
@ -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 */ ''
|
||||
|
@ -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 */ ''
|
||||
|
Loading…
Reference in New Issue
Block a user