File tree Expand file tree Collapse file tree 2 files changed +3
-42
lines changed Expand file tree Collapse file tree 2 files changed +3
-42
lines changed Original file line number Diff line number Diff line change 30
30
31
31
programs . fish . enable = true ;
32
32
33
- networking . firewall = {
34
- allowedTCPPorts = [
35
- 1433
36
- 4747
37
- 5432
38
- ] ;
39
-
40
- interfaces . podman1 . allowedUDPPorts = [ 53 ] ;
41
- } ;
33
+ # networking.firewall.allowedTCPPorts = [ 1433 4747 5432 ];
42
34
43
35
services = {
44
36
dbus . implementation = "broker" ;
52
44
} ;
53
45
54
46
postgresql = {
55
- enable = true ;
47
+ enable = false ;
56
48
package = pkgs . postgresql_17 ;
57
49
enableTCPIP = true ;
58
50
} ;
59
51
60
52
minecraft-servers = {
61
- enable = true ;
53
+ enable = false ;
62
54
eula = true ;
63
55
64
56
servers . volta = {
201
193
} ;
202
194
} ;
203
195
204
- systemd . services . create-podman-network = with config . virtualisation . oci-containers ; {
205
- serviceConfig . Type = "oneshot" ;
206
- wantedBy = [ "${ backend } -ms-sql-server.service" ] ;
207
-
208
- script = ''
209
- ${ lib . getExe pkgs . podman } network exists db-net || ${ lib . getExe pkgs . podman } network create db-net
210
- '' ;
211
- } ;
212
-
213
196
users . users . moni = {
214
197
isNormalUser = true ;
215
198
home = "/home/moni" ;
216
199
shell = pkgs . fish ;
217
200
extraGroups = [ "wheel" ] ;
218
201
} ;
219
-
220
- virtualisation = {
221
- podman . enable = true ;
222
-
223
- oci-containers = {
224
- backend = "podman" ;
225
-
226
- containers . ms-sql-server = {
227
- image = "mcr.microsoft.com/mssql/server:2022-latest" ;
228
- autoStart = true ;
229
- ports = [ "1433:1433" ] ;
230
-
231
- environment = {
232
- ACCEPT_EULA = "Y" ;
233
- # MSSQL_SA_PASSWORD = __readFile config.age.secrets.ms-sql-server.path; # yes, this is bad but I don't have much choice...
234
- } ;
235
-
236
- extraOptions = [ "--network=db-net" ] ;
237
- } ;
238
- } ;
239
- } ;
240
202
}
Original file line number Diff line number Diff line change 14
14
device = "/dev/sda1" ;
15
15
fsType = "ext4" ;
16
16
} ;
17
-
18
17
}
You can’t perform that action at this time.
0 commit comments