feat: add change wallpaper shortcut to yazi
This commit is contained in:
parent
d1f25b377f
commit
c45ba82b90
18 changed files with 188 additions and 21 deletions
23
system/modules/opencloud.nix
Normal file
23
system/modules/opencloud.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
fqdn ? null,
|
||||
https ? false,
|
||||
envFile ? null,
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) optionalString mkIf;
|
||||
finalFqdn = if fqdn == null then config.networking.fqdn else fqdn;
|
||||
in
|
||||
{
|
||||
services.opencloud = {
|
||||
enable = true;
|
||||
url = "http${optionalString https "s"}://${finalFqdn}";
|
||||
environmentFile = envFile;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."${finalFqdn}" = mkIf https {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.opencloud.port}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue