diff --git a/modules/flake/lib/default.nix b/modules/flake/lib/default.nix index d3e2113a..d51bf3b0 100644 --- a/modules/flake/lib/default.nix +++ b/modules/flake/lib/default.nix @@ -5,7 +5,6 @@ lib.fixedPoints.makeExtensible (final: { # keep-sorted start block=yes - hardware = import ./hardware.nix; helpers = import ./helpers.nix { inherit lib; }; mkHost = import ./mkhost.nix { inherit inputs lib; }; secrets = import ./secrets.nix { inherit inputs; }; @@ -14,9 +13,8 @@ lib.fixedPoints.makeExtensible (final: { # keep-sorted end # we have to rexport the functions we want to use, but don't want to refer to the whole lib - # "path". e.g. gardenLib.hardware.isx86Linux can be shortened to gardenLib.isx86Linux + # "path". e.g. gardenLib.helpers.giturl can be shortened to gardenLib.giturl # NOTE: never rexport templates - inherit (final.hardware) isx86Linux; inherit (final.helpers) mkPubs giturl; inherit (final.secrets) mkSecret; inherit (final.services) mkServiceOption; diff --git a/modules/flake/lib/hardware.nix b/modules/flake/lib/hardware.nix deleted file mode 100644 index b9c19c4d..00000000 --- a/modules/flake/lib/hardware.nix +++ /dev/null @@ -1,26 +0,0 @@ -let - /** - check if the host platform is linux and x86 - - # Arguments - - - [pkgs] the package set - - # Type - - ``` - isx86Linux :: AttrSet -> Bool - ``` - - # Example - - ```nix - isx86Linux pkgs - => true - ``` - */ - isx86Linux = pkgs: pkgs.stdenv.hostPlatform.isLinux && pkgs.stdenv.hostPlatform.isx86; -in -{ - inherit isx86Linux; -}