mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: setting up opencloud and microvms
This commit is contained in:
parent
4b520563d4
commit
0ed3bb9b64
11 changed files with 171 additions and 33 deletions
|
|
@ -104,10 +104,12 @@ in
|
|||
btrfs subvolume create /btrfs_tmp/root
|
||||
umount /btrfs_tmp
|
||||
'';
|
||||
swraid.enable = true;
|
||||
# mdadmConf = ''
|
||||
# ARRAY /dev/md0 metadata=1.2 name=eris:storage UUID=64659038:a939a18d:8cdc0f3f:97171a50
|
||||
# '';
|
||||
swraid = {
|
||||
enable = true;
|
||||
mdadmConf = ''
|
||||
ARRAY /dev/md0 metadata=1.2 name=eris:storage UUID=64659038:a939a18d:8cdc0f3f:97171a50
|
||||
'';
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,40 @@ let
|
|||
inherit (flake.config.machines.devices) eris;
|
||||
in
|
||||
{
|
||||
|
||||
microvm.host.enable = true;
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
netdevs."10-br-vms" = {
|
||||
netdevConfig = {
|
||||
Name = "br-vms";
|
||||
Kind = "bridge";
|
||||
};
|
||||
};
|
||||
|
||||
networks = {
|
||||
"20-lan" = {
|
||||
matchConfig.Name = [
|
||||
"enp10s0"
|
||||
"vm-*"
|
||||
];
|
||||
networkConfig = {
|
||||
Bridge = "br-vms";
|
||||
};
|
||||
};
|
||||
"30-br-vms" = {
|
||||
matchConfig.Name = "br-vms";
|
||||
networkConfig = {
|
||||
Address = "192.168.50.245/24";
|
||||
Gateway = "192.168.50.1";
|
||||
DNS = [ "192.168.50.1" ];
|
||||
};
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = eris.name;
|
||||
networkmanager.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue