chore: Simplify tests

Removes the redundant `self`.
This commit is contained in:
Donovan Glover 2024-04-05 11:50:28 -04:00
parent 22e31ff60b
commit 41ce56718b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 10 additions and 9 deletions

View File

@ -5,9 +5,9 @@ in
(import ./lib.nix) { (import ./lib.nix) {
name = "hyprland"; name = "hyprland";
nodes.machine = { self, pkgs, ... }: { nodes.machine = { nix-config, ... }: {
imports = attrValues { imports = attrValues {
inherit (self.nixosModules) system desktop; inherit (nix-config.nixosModules) system desktop;
}; };
}; };

View File

@ -1,14 +1,15 @@
test: { pkgs, self }: test: { self, pkgs }:
let let
inherit (pkgs) lib; inherit (pkgs.lib) mkDefault;
nixos-lib = import (pkgs.path + "/nixos/lib") { }; nixos-lib = import (pkgs.path + "/nixos/lib") { };
in in
(nixos-lib.runTest { (nixos-lib.runTest {
imports = [ test ];
hostPkgs = pkgs; hostPkgs = pkgs;
defaults.documentation.enable = lib.mkDefault false; defaults.documentation.enable = mkDefault false;
node.specialArgs = { node.specialArgs = {
inherit self;
nix-config = self; nix-config = self;
}; };
imports = [ test ];
}).config.result }).config.result

View File

@ -5,9 +5,9 @@ in
(import ./lib.nix) { (import ./lib.nix) {
name = "neovim"; name = "neovim";
nodes.machine = { self, pkgs, ... }: { nodes.machine = { nix-config, ... }: {
imports = attrValues { imports = attrValues {
inherit (self.nixosModules) system shell; inherit (nix-config.nixosModules) system shell;
}; };
}; };