Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NixOS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Lenz
NixOS
Commits
51ba5e6c
Verified
Commit
51ba5e6c
authored
May 21, 2024
by
Nicolas Lenz
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
a1e2a33e
Branches
container-test
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nixos/server/containers.nix
+32
-0
32 additions, 0 deletions
nixos/server/containers.nix
nixos/server/default.nix
+2
-1
2 additions, 1 deletion
nixos/server/default.nix
with
34 additions
and
1 deletion
nixos/server/containers.nix
0 → 100644
+
32
−
0
View file @
51ba5e6c
{
...
}:
{
systemd
.
network
=
{
netdevs
.
"09-test"
.
netdevConfig
=
{
Kind
=
"bridge"
;
Name
=
"br-test"
;
};
networks
.
"09-test"
=
{
matchConfig
.
Name
=
"br-test"
;
DHCP
=
"no"
;
address
=
[
"10.77.0.1/16"
];
};
};
containers
.
test
=
{
privateNetwork
=
true
;
localAddress
=
"10.77.1.1/16"
;
#localAddress6 = "";
#hostAddress = "";
#hostAddress6 = "";
#interfaces = "";
hostBridge
=
"br-test"
;
# forwardPorts
# extraVeths
autoStart
=
true
;
ephemeral
=
true
;
# journal not linked?
config
=
{};
};
}
This diff is collapsed.
Click to expand it.
nixos/server/default.nix
+
2
−
1
View file @
51ba5e6c
...
...
@@ -10,6 +10,7 @@ modules for my services, only used on sapphire, my homeserver
./auth.nix
./away.nix
./cloud.nix
./containers.nix
./dashboard.nix
./days.nix
./data.nix
...
...
@@ -96,6 +97,6 @@ modules for my services, only used on sapphire, my homeserver
enable
=
true
;
enableIPv6
=
true
;
externalInterface
=
"wired0"
;
internalInterfaces
=
[
"br-microvm"
];
internalInterfaces
=
[
"br-microvm"
"br-test"
];
};
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment