fix: Gluster restructure

This commit is contained in:
Kyle Brown 2023-12-08 14:23:47 -08:00
parent 7b96a0961a
commit db24537b24
7 changed files with 72 additions and 23 deletions

View file

@ -0,0 +1,36 @@
{
config,
lib,
pkgs,
...
}: {
imports = [./common.nix];
services.glusterfs = {
enable = true;
# killMode = "process";
};
systemd.mounts = [
{
type = "glusterfs";
what = "morbo:/docker";
where = "/mnt/gdocker";
}
{
type = "glusterfs";
what = "morbo:/media";
where = "/mnt/gmedia";
}
{
type = "glusterfs";
what = "morbo:/dockerdata";
where = "/mnt/gdockerdata";
}
{
type = "glusterfs";
what = "morbo:/backups";
where = "/mnt/gbackups";
}
];
}

View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}: {
services.glusterfs = {
enable = true;
# killMode = "process";
};
systemd.automounts = [
{
wantedBy = ["multi-user.target"];
where = "/mnt/gdocker";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gmedia";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gdockerdata";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gbackups";
}
];
}

View file

@ -4,6 +4,8 @@
pkgs,
...
}: {
imports = [./common.nix];
services.glusterfs = {
enable = true;
# killMode = "process";
@ -31,24 +33,4 @@
where = "/mnt/gbackups";
}
];
systemd.automounts = [
{
wantedBy = ["multi-user.target"];
where = "/mnt/gdocker";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gmedia";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gdockerdata";
}
{
wantedBy = ["multi-user.target"];
where = "/mnt/gbackups";
}
];
}

View file

@ -14,6 +14,7 @@
./hardware-configuration.nix
../../common/nixos/common.nix
../../common/nixos/docker.nix
../../common/networking/gluster/client.nix
../../common/networking/zerotier.nix
../../common/editors/emacs.nix
# Include the necessary packages and configuration for Apple Silicon support.

View file

@ -11,7 +11,7 @@
./hardware-configuration.nix
./zfs.nix
../../common/nixos/common.nix
../../common/networking/gluster.nix
../../common/networking/gluster
../../common/networking/zerotier.nix
../../common/editors/emacs.nix
../../common/nixos/docker.nix

View file

@ -13,7 +13,7 @@
./zfs.nix
../../common/nixos/common.nix
../../common/networking/zerotier.nix
../../common/networking/gluster.nix
../../common/networking/gluster
../../common/editors/emacs.nix
../../common/nixos/docker.nix
];

View file

@ -12,7 +12,7 @@
./zfs.nix
../../common/nixos/common.nix
../../common/networking/zerotier.nix
../../common/networking/gluster.nix
../../common/networking/gluster
../../common/editors/emacs.nix
../../common/nixos/docker.nix
../../common/gui/games.nix