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:
parent
8d2d55e4c4
commit
d1b974b86c
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue