mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 17:50:52 +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) {
|
(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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user