Skip to content

Commit

Permalink
flake: add and export "everything ™️"
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 22, 2024
1 parent 7ec7e54 commit 9e7c4b8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(removeSuffix ".nix" key)
(import "${./modules}/${key}")
) (builtins.readDir ./modules);
in modules // (with modules; {
in modules // (with modules; rec {
default = [
ansible-host
base-tools
Expand All @@ -44,6 +44,16 @@
ethtool-setringmax
prometheus-exporter-gateway
];
ansible_default = default ++ [
nix-unify.nixosModules.ansible
];
unify_default = ansible_default ++ [
nix-unify.nixosModules.unify
];
onlypath_default = [
nix-unify.nixosModules.unify
onlypath
];
});

checks = forAllSystems (system:
Expand All @@ -58,7 +68,7 @@
(builtins.readDir ./tests)) //
{
onlypath = (pkgs.nixos {
imports = [ self.nixosModules.onlypath nix-unify.nixosModules.unify ];
imports = self.nixosModules.onlypath_default;
nixpkgs.hostPlatform = system;
}).config.system.build.toplevel;
}
Expand Down

0 comments on commit 9e7c4b8

Please sign in to comment.