make it work

pull/1/head
Tudor Roman 2023-01-14 22:19:13 +02:00
parent 6e4a3a10db
commit 0a6eaa0cb4
6 changed files with 7 additions and 4 deletions

View File

@ -39,6 +39,7 @@
(final: prev: {
tudor.site = inputs.site.packages.${system}.site;
tudor.blog = inputs.blog.packages.${system}.blog;
tudor.pong = inputs.co-work.packages.${system}.pong;
})
];
};

View File

@ -41,4 +41,5 @@
};
services.zfs.autoSnapshot.enable = true;
home-manager.users.tudor = ../../users/tudor/home.nix;
}

View File

@ -17,7 +17,7 @@ with lib;
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Restart = "on-failure";
ExecStart = "${inputs.co-work.packages.pong}/bin/pong";
ExecStart = "${pkgs.tudor.pong}/bin/pong";
DynamicUser = "yes";
};
};

View File

@ -13,6 +13,7 @@ with lib;
networking.firewall = {
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
checkReversePath = "loose";
};
};
}

View File

@ -7,7 +7,7 @@ with lib; {
config = mkIf cfg.enable {
security.acme = {
email = "tudor@tudorr.ro";
defaults.email = "tudor@tudorr.ro";
acceptTerms = true;
};

View File

@ -15,12 +15,12 @@ with lib; {
locations = {
"/" = {
alias = "${inputs.site.packages.site}/";
alias = "${pkgs.tudor.site}/";
index = "index.html";
};
"/blog/" = {
alias = "${inputs.blog.defaultPackage}/";
alias = "${pkgs.tudor.blog}/";
index = "index.html";
};
};