refactor
This commit is contained in:
parent
495f79a577
commit
818f9bc453
4 changed files with 16 additions and 10 deletions
|
@ -14,7 +14,7 @@ _: {
|
|||
"image/jpeg" = ["org.gnome.eog.desktop"];
|
||||
"image/png" = ["org.gnome.eog.desktop"];
|
||||
"image/webp" = ["org.gnome.eog.desktop"];
|
||||
"x-scheme-handler/tg" =["org.telegram.desktop.desktop"];
|
||||
"x-scheme-handler/tg" = ["org.telegram.desktop.desktop"];
|
||||
};
|
||||
};
|
||||
userDirs.enable = true;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
adtya-xyz,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
system = pkgs.system;
|
||||
in {
|
||||
services = {
|
||||
caddy.virtualHosts."adtya.xyz" = {
|
||||
serverAliases = ["www.adtya.xyz"];
|
||||
|
@ -20,7 +22,7 @@
|
|||
}
|
||||
|
||||
handle {
|
||||
root * ${adtya-xyz.packages.${config.nixpkgs.system}.default}/share/web
|
||||
root * ${adtya-xyz.packages.${system}.default}/share/web
|
||||
encode gzip
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
if3,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
system = pkgs.system;
|
||||
in {
|
||||
services = {
|
||||
caddy.virtualHosts = {
|
||||
"if3.adtya.xyz" = {
|
||||
extraConfig = ''
|
||||
root * ${if3.packages.${config.nixpkgs.system}.default}/share/web
|
||||
root * ${if3.packages.${system}.default}/share/web
|
||||
encode gzip
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
wiki,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
system = pkgs.system;
|
||||
in {
|
||||
services = {
|
||||
caddy.virtualHosts = {
|
||||
"wiki.adtya.xyz" = {
|
||||
extraConfig = ''
|
||||
root * ${wiki.packages.${config.nixpkgs.system}.default}/share/web
|
||||
root * ${wiki.packages.${system}.default}/share/web
|
||||
encode gzip
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
|
|
Loading…
Reference in a new issue