refactoring: Use flake-inputs instead of awkwardly passing through

This commit is contained in:
Tristan Daniël Maat 2023-02-26 05:44:54 +00:00
parent b7feffc52f
commit bb397841ee
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 22 additions and 31 deletions

View file

@ -1,9 +1,4 @@
{
lib,
nixpkgs,
sops-nix,
tlaternet-webserver,
}: let
{lib}: let
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.strings) concatStringsSep;
in {
@ -12,19 +7,4 @@ in {
(mapAttrsToList
(host: vm: "hostfwd=::${host}-:${vm}")
portMapping);
makeNixosSystem = {
system,
extraModules,
}:
nixpkgs.lib.nixosSystem {
inherit system;
modules =
[
sops-nix.nixosModules.sops
tlaternet-webserver.nixosModules.default
(import ../configuration)
]
++ extraModules;
};
}