feat: Gluster mounts
This commit is contained in:
parent
bdc848a04c
commit
5a1c902d02
1 changed files with 39 additions and 2 deletions
|
@ -1,8 +1,45 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.glusterfs = {
|
||||
enable = true;
|
||||
# killMode = "process";
|
||||
};
|
||||
|
||||
systemd.mounts = [
|
||||
{
|
||||
type = "glusterfs";
|
||||
what = "127.0.0.1:/docker";
|
||||
where = "/mnt/gdocker";
|
||||
}
|
||||
{
|
||||
type = "glusterfs";
|
||||
what = "127.0.0.1:/media";
|
||||
where = "/mnt/gmedia";
|
||||
}
|
||||
{
|
||||
type = "glusterfs";
|
||||
what = "127.0.0.1:/dockerdata";
|
||||
where = "/mnt/gdockerdata";
|
||||
}
|
||||
];
|
||||
|
||||
systemd.automounts = [
|
||||
{
|
||||
wantedBy = ["multi-user.target"];
|
||||
where = "/mnt/gdocker";
|
||||
}
|
||||
{
|
||||
wantedBy = ["multi-user.target"];
|
||||
where = "/mnt/gmedia";
|
||||
}
|
||||
{
|
||||
wantedBy = ["multi-user.target"];
|
||||
where = "/mnt/gdockerdata";
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue