refactoring: Use flake-inputs instead of awkwardly passing through
This commit is contained in:
parent
b7feffc52f
commit
bb397841ee
3 changed files with 22 additions and 31 deletions
lib
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue