This commit is contained in:
Adithya 2023-11-03 18:16:02 +05:30
parent 495f79a577
commit 818f9bc453
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
4 changed files with 16 additions and 10 deletions

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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