From 597e903e98a66fbd3eab8d11ef66db65290acbab Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Fri, 22 Nov 2024 20:19:47 +0100 Subject: [PATCH] Add ceph support (should have been here from the start) --- systems/base/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/systems/base/configuration.nix b/systems/base/configuration.nix index dc1fdff..ddab5aa 100644 --- a/systems/base/configuration.nix +++ b/systems/base/configuration.nix @@ -79,13 +79,24 @@ ]; files = [ "/etc/machine-id" + # SSH Server { file = "/etc/ssh/ssh_host_ed25519_key"; mode = "0600"; } { file = "/etc/ssh/ssh_host_ed25519_key.pub"; mode = "0644"; } { file = "/etc/ssh/ssh_host_rsa_key"; mode = "0600"; } { file = "/etc/ssh/ssh_host_rsa_key.pub"; mode = "0644"; } + # Ceph Client + { file = "/etc/ceph/ceph.conf"; mode = "0644"; } ]; }; + services.ceph = { + enable = true; + global = { + fsid = "b9b22d11-3492-49a6-92b7-b36cdf0161fe"; + monHost = "v2:192.168.1.239:3300/0,v1:192.168.1.239:6789/0"; + }; + }; + system.stateVersion = lib.mkDefault "24.05"; }; }