remove nixosModules.default

This commit is contained in:
Sean Buckley 2024-05-17 23:55:35 -04:00
parent da2abb03d6
commit 97cea08fbc

View file

@ -33,7 +33,17 @@
};
};
mods =
in
{
formatter = forAllSystems (system:
nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
lib = {
gen-ssh-config = import lib/gen-ssh-config.nix lib;
ssh-keys = import lib/ssh-keys.nix;
};
nixosModules =
{
inherit pins;
inherit (impermanence.nixosModules) impermanence;
@ -46,21 +56,9 @@
})
(builtins.readDir ./modules);
in
{
formatter = forAllSystems (system:
nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
lib = {
gen-ssh-config = import lib/gen-ssh-config.nix lib;
ssh-keys = import lib/ssh-keys.nix;
};
nixosModules = mods // { default.imports = builtins.attrValues mods; };
nixosConfigurations = builtins.mapAttrs
(_: lib.nixosSystem)
(import ./hosts self.nixosModules.default);
(import ./hosts { imports = builtins.attrValues self.nixosModules; });
packages = forAllSystems (system:
mypkgs nixpkgs.legacyPackages.${system});