Archived
1
0
forked from rarias/bscpkgs

Move the ceph client config to an external module

This commit is contained in:
2023-09-04 21:59:04 +02:00
parent 0a5f9b55f5
commit 74ec4eb22a
2 changed files with 2 additions and 1 deletions

View File

@@ -1,24 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ceph
ceph-client
fio # For benchmarks
];
# We need the ceph module loaded as the mount.ceph binary fails to run the
# modprobe command.
boot.kernelModules = [ "ceph" ];
age.secrets.cephUser.file = ../../secrets/ceph-user.age;
fileSystems."/ceph" = {
fsType = "ceph";
device = "user@9c8d06e0-485f-4aaf-b16b-06d6daf1232b.cephfs=/";
options = [
"mon_addr=10.0.40.40"
"secretfile=${config.age.secrets.cephUser.path}"
];
};
}

View File

@@ -4,11 +4,11 @@
imports = [
../common/main.nix
../module/ceph.nix
./gitlab-runner.nix
./monitoring.nix
./nfs.nix
./slurm-daemon.nix
./ceph.nix
#./pxe.nix
agenix.nixosModules.default
];