fix: Gluster restructure
This commit is contained in:
parent
7b96a0961a
commit
db24537b24
7 changed files with 72 additions and 23 deletions
36
common/networking/gluster/client.nix
Normal file
36
common/networking/gluster/client.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
30
common/networking/gluster/common.nix
Normal file
30
common/networking/gluster/common.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
|
||||
}
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue