mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
chore: Simplify tests
Removes the redundant `self`.
This commit is contained in:
parent
22e31ff60b
commit
41ce56718b
@ -5,9 +5,9 @@ in
|
||||
(import ./lib.nix) {
|
||||
name = "hyprland";
|
||||
|
||||
nodes.machine = { self, pkgs, ... }: {
|
||||
nodes.machine = { nix-config, ... }: {
|
||||
imports = attrValues {
|
||||
inherit (self.nixosModules) system desktop;
|
||||
inherit (nix-config.nixosModules) system desktop;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,14 +1,15 @@
|
||||
test: { pkgs, self }:
|
||||
test: { self, pkgs }:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
inherit (pkgs.lib) mkDefault;
|
||||
nixos-lib = import (pkgs.path + "/nixos/lib") { };
|
||||
in
|
||||
(nixos-lib.runTest {
|
||||
imports = [ test ];
|
||||
|
||||
hostPkgs = pkgs;
|
||||
defaults.documentation.enable = lib.mkDefault false;
|
||||
defaults.documentation.enable = mkDefault false;
|
||||
|
||||
node.specialArgs = {
|
||||
inherit self;
|
||||
nix-config = self;
|
||||
};
|
||||
imports = [ test ];
|
||||
}).config.result
|
||||
|
@ -5,9 +5,9 @@ in
|
||||
(import ./lib.nix) {
|
||||
name = "neovim";
|
||||
|
||||
nodes.machine = { self, pkgs, ... }: {
|
||||
nodes.machine = { nix-config, ... }: {
|
||||
imports = attrValues {
|
||||
inherit (self.nixosModules) system shell;
|
||||
inherit (nix-config.nixosModules) system shell;
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user