Skip to content

Commit ad4d895

Browse files
committed
mistral: disable unused services
1 parent b190dc3 commit ad4d895

File tree

2 files changed

+3
-42
lines changed

2 files changed

+3
-42
lines changed

hosts/mistral/configuration.nix

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@
3030

3131
programs.fish.enable = true;
3232

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 ];
4234

4335
services = {
4436
dbus.implementation = "broker";
@@ -52,13 +44,13 @@
5244
};
5345

5446
postgresql = {
55-
enable = true;
47+
enable = false;
5648
package = pkgs.postgresql_17;
5749
enableTCPIP = true;
5850
};
5951

6052
minecraft-servers = {
61-
enable = true;
53+
enable = false;
6254
eula = true;
6355

6456
servers.volta = {
@@ -201,40 +193,10 @@
201193
};
202194
};
203195

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-
213196
users.users.moni = {
214197
isNormalUser = true;
215198
home = "/home/moni";
216199
shell = pkgs.fish;
217200
extraGroups = [ "wheel" ];
218201
};
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-
};
240202
}

hosts/mistral/hardware-configuration.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
device = "/dev/sda1";
1515
fsType = "ext4";
1616
};
17-
1817
}

0 commit comments

Comments
 (0)