11{ instance } :
22
3- { config , lib , pkgs , ... } :
3+ { config , pkgs , ... } :
44
55{
66 microvm = {
7- vcpu = 2 ;
7+ vcpu = 4 ;
88 mem = 4096 ;
99
1010 shares = [ {
3434 networking . hostName = "example${ toString instance } " ;
3535 users . users . root . password = "" ;
3636
37- # TODO:
37+ # TODO:? Shoulld firewall be fixed?
3838 networking . firewall . enable = false ;
3939
4040 networking . useDHCP = false ;
6464 IPv6AcceptRA = true ;
6565 } ;
6666 addresses = [ {
67- addressConfig . Address = "fec0::${ toString instance } /64" ;
67+ # TODO: addressConfig needs to be removed.
68+ # trace: warning: Using 'addressConfig' is deprecated! Move all attributes inside one level up and remove it.
69+ addressConfig . Address = "fec0::${ toString instance } /64" ; #
6870 } ] ;
6971 } ;
7072 } ;
7880 } ) [ 1 2 3 ]
7981 ) ;
8082
81- storage . ceph = rec {
82- fsid = "8364da79-5e03-49ae-82ea-7d936278cb0f" ;
83- monKeyring = example/ceph.mon.keyring ;
84- adminKeyring = example/ceph.client.admin.keyring ;
85- osds = [ {
86- id = instance ;
87- fsid = "8e4ae689-5c15-4381-bd75-19de743378e${ toString instance } " ;
88- path = "/dev/vdb" ;
89- deviceClass = "ssd" ;
90- keyfile = toString ( ./example + "/osd.${ toString instance } .keyring" ) ;
91- } ] ;
92- rbdPools . microvms = {
93- params = { size = 2 ; class = "ssd" ; } ;
83+
84+ storage . seaweedfs = {
85+ enable = true ;
86+ filer . db . etcd = {
87+ enable = true ;
9488 } ;
95- cephfs . skyflake . metaParams = { size = 2 ; class = "ssd" ; } ;
9689 } ;
90+ #storage.ceph = {
91+ # fsid = "8364da79-5e03-49ae-82ea-7d936278cb0f";
92+ # monKeyring = example/ceph.mon.keyring;
93+ # adminKeyring = example/ceph.client.admin.keyring;
94+ # osds = [ {
95+ # id = instance;
96+ # fsid = "8e4ae689-5c15-4381-bd75-19de743378e${toString instance}";
97+ # path = "/dev/vdb";
98+ # deviceClass = "ssd";
99+ # keyfile = toString (./example + "/osd.${toString instance}.keyring");
100+ # } ];
101+ # rbdPools.microvms = {
102+ # params = { size = 2; class = "ssd"; };
103+ # };
104+ # cephfs.skyflake.metaParams = { size = 2; class = "ssd"; };
105+ #};
97106
98107 nomad = {
99108 servers = [ "example1" "example2" "example3" ] ;
107116 uid = 1000 ;
108117 sshKeys = [
109118 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGJJTSJdpDh82486uPiMhhyhnci4tScp5uUe7156MBC8 astro"
119+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPRRdToCDUupkkwI+crB3fGDwdBIFkDsBHjOImn+qsjg openpgp:0xE8D3D833"
110120 ] ;
111121 } ;
112122 } ;
115125 environment . systemPackages = with pkgs ; [
116126 tcpdump
117127 ] ;
118- }
128+ }
0 commit comments