yevaud: specify (non-boot-critical) zfs datasets with randomcat's module

Also moves forgejo state directory to the default location
This commit is contained in:
Katherina Walshe-Grey 2024-09-24 18:56:27 +01:00
parent 8d2d55e4c4
commit d1b974b86c
3 changed files with 5 additions and 10 deletions

View file

@ -52,10 +52,14 @@
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
randomcat.services.zfs.datasets = {
"rpool/state" = { mountpoint = "none"; };
"rpool/state/forgejo" = { mountpoint = "/var/lib/forgejo"; };
};
qenya.services.forgejo = {
enable = true;
domain = "git.qenya.tel";
stateDir = "/data/forgejo";
};
services.nginx = {

View file

@ -28,11 +28,6 @@
fsType = "zfs";
};
fileSystems."/data/forgejo" =
{ device = "rpool/forgejo";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/107D-5AB3";
fsType = "vfat";

View file

@ -10,9 +10,6 @@ in
domain = mkOption {
type = types.str;
};
stateDir = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
@ -33,7 +30,6 @@ in
forgejo = {
enable = true;
stateDir = cfg.stateDir;
settings = {
DEFAULT.APP_NAME = cfg.domain;
cache = {