added forgejo config using sqlite.
This commit is contained in:
parent
6dcbb146b7
commit
f91cb5469d
8 changed files with 77 additions and 32 deletions
|
@ -1,8 +1,6 @@
|
|||
{lib}:let
|
||||
{lib}: let
|
||||
net = import ./net.nix {inherit lib;};
|
||||
in
|
||||
{
|
||||
|
||||
in {
|
||||
dirToStrings = dir: (map (v: builtins.readFile "${dir}/${v}")
|
||||
(builtins.filter (v:
|
||||
(builtins.readFileType "${dir}/${v}") == "regular") (
|
||||
|
@ -14,8 +12,11 @@ in
|
|||
else []
|
||||
)));
|
||||
|
||||
|
||||
calcSystemdDhcpPoolOffset = {base, start, end}: {
|
||||
calcSystemdDhcpPoolOffset = {
|
||||
base,
|
||||
start,
|
||||
end,
|
||||
}: {
|
||||
offset = net.lib.net.ip.diff start base;
|
||||
size = net.lib.net.ip.diff end start;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue