treewide: Refactor in order to clean up flake.nix
This commit is contained in:
parent
068e6d5d77
commit
e8b16459d9
7 changed files with 101 additions and 98 deletions
lib
10
lib/default.nix
Normal file
10
lib/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{lib}: let
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
in {
|
||||
makeQemuNetOpts = portMapping:
|
||||
concatStringsSep ","
|
||||
(mapAttrsToList
|
||||
(host: vm: "hostfwd=::${host}-:${vm}")
|
||||
portMapping);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue