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/jpeg" = ["org.gnome.eog.desktop"];
|
||||||
"image/png" = ["org.gnome.eog.desktop"];
|
"image/png" = ["org.gnome.eog.desktop"];
|
||||||
"image/webp" = ["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;
|
userDirs.enable = true;
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
pkgs,
|
||||||
adtya-xyz,
|
adtya-xyz,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
system = pkgs.system;
|
||||||
|
in {
|
||||||
services = {
|
services = {
|
||||||
caddy.virtualHosts."adtya.xyz" = {
|
caddy.virtualHosts."adtya.xyz" = {
|
||||||
serverAliases = ["www.adtya.xyz"];
|
serverAliases = ["www.adtya.xyz"];
|
||||||
|
@ -20,7 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
root * ${adtya-xyz.packages.${config.nixpkgs.system}.default}/share/web
|
root * ${adtya-xyz.packages.${system}.default}/share/web
|
||||||
encode gzip
|
encode gzip
|
||||||
try_files {path} /index.html
|
try_files {path} /index.html
|
||||||
file_server
|
file_server
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{
|
{
|
||||||
config,
|
pkgs,
|
||||||
if3,
|
if3,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
system = pkgs.system;
|
||||||
|
in {
|
||||||
services = {
|
services = {
|
||||||
caddy.virtualHosts = {
|
caddy.virtualHosts = {
|
||||||
"if3.adtya.xyz" = {
|
"if3.adtya.xyz" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
root * ${if3.packages.${config.nixpkgs.system}.default}/share/web
|
root * ${if3.packages.${system}.default}/share/web
|
||||||
encode gzip
|
encode gzip
|
||||||
try_files {path} /index.html
|
try_files {path} /index.html
|
||||||
file_server
|
file_server
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{
|
{
|
||||||
config,
|
pkgs,
|
||||||
wiki,
|
wiki,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
system = pkgs.system;
|
||||||
|
in {
|
||||||
services = {
|
services = {
|
||||||
caddy.virtualHosts = {
|
caddy.virtualHosts = {
|
||||||
"wiki.adtya.xyz" = {
|
"wiki.adtya.xyz" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
root * ${wiki.packages.${config.nixpkgs.system}.default}/share/web
|
root * ${wiki.packages.${system}.default}/share/web
|
||||||
encode gzip
|
encode gzip
|
||||||
try_files {path} /index.html
|
try_files {path} /index.html
|
||||||
file_server
|
file_server
|
||||||
|
|
Loading…
Reference in a new issue