minor changes

This commit is contained in:
jacekpoz 2024-03-06 19:05:39 +01:00
parent 5fbd3376bd
commit 6abd0b07c1
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
4 changed files with 7 additions and 7 deletions

View file

@ -34,8 +34,8 @@ in {
environment.systemPackages = with pkgs; [ dbus ];
systemd.tmpfiles.rules = [
"d /var/lib/${service-name} 0700 ${service-name} ${builtins.toString gid}"
"d /var/lib/${service-name}/data 0700 ${service-name} ${builtins.toString gid}"
"d /var/lib/${service-name} 0700 ${service-name} ${toString gid}"
"d /var/lib/${service-name}/data 0700 ${service-name} ${toString gid}"
];
systemd.services."${config.virtualisation.oci-containers.backend}-${service-name}".serviceConfig = {

View file

@ -15,12 +15,12 @@
APP_NAME = "fuck it we code";
};
server = {
server = rec {
DOMAIN = "git.jacekpoz.pl";
HTTP_PORT = 1849;
PROTOCOL = "http";
SSH_PORT = 8236;
ROOT_URL = "${config.services.forgejo.settings.server.PROTOCOL}://${config.services.forgejo.settings.server.DOMAIN}/";
ROOT_URL = "${PROTOCOL}://${DOMAIN}/";
};
};
};
@ -28,7 +28,7 @@
services.caddy = {
enable = true;
virtualHosts."git.jacekpoz.pl".extraConfig = ''
reverse_proxy * localhost:1849
reverse_proxy * localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
'';
};
}

View file

@ -11,7 +11,7 @@
enable = true;
virtualHosts."live.jacekpoz.pl".extraConfig = ''
encode gzip
reverse_proxy 127.0.0.1:9842
reverse_proxy ${config.services.owncast.listen}:${toString config.services.owncast.port}
'';
};

View file

@ -10,7 +10,7 @@
hmCfg = config.home-manager.users.${username};
osuCfg = config.myOptions.programs.osu;
isAmdGpuPresent = builtins.elem "amdgpu" config.boot.initrd.kernelModules;
isAmdGpuPresent = elem "amdgpu" config.boot.initrd.kernelModules;
inherit (inputs.nixpkgs-wayland.packages.${pkgs.system}) foot wl-clipboard swww wlsunset swaylock;
inherit (inputs.anyrun.packages.${pkgs.system}) anyrun;