Compare commits
No commits in common. "1007672f011f0e5f2de1257b92cf246e2e1b9f04" and "36dc131440385802f46947a84d782592d131d3a4" have entirely different histories.
1007672f01
...
36dc131440
|
@ -4,13 +4,13 @@ let
|
||||||
PROJECT_ROOT = builtins.toString ./.;
|
PROJECT_ROOT = builtins.toString ./.;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
# (self: super: {
|
(self: super: {
|
||||||
# newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
|
newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
|
||||||
# })
|
})
|
||||||
# ];
|
];
|
||||||
|
|
||||||
# environment.systemPackages = [ pkgs.newSealPost ];
|
environment.systemPackages = [ pkgs.newSealPost ];
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -32,10 +32,10 @@ in
|
||||||
# uncomment this to use the staging server
|
# uncomment this to use the staging server
|
||||||
# security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
# security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
|
|
||||||
# services.cron = {
|
services.cron = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# systemCronJobs = [
|
systemCronJobs = [
|
||||||
# "12 12 * * * alice . /etc/profile; ${pkgs.newSealPost} > /home/alice/logs/backup.log 2>&1"
|
"12 12 * * * alice . /etc/profile; ${pkgs.newSealPost} > /home/alice/logs/backup.log 2>&1"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/sh
|
||||||
|
HOME="/home/alice/seal-blog"
|
||||||
|
|
||||||
|
# Call generateSealPosts from root of blog
|
||||||
|
# This will generate posts up to today
|
||||||
|
cd $HOME
|
||||||
|
./generate/generateSealPosts
|
||||||
|
|
||||||
|
# cd to website so site can find posts folder and build
|
||||||
|
cd $HOME/website
|
||||||
|
|
||||||
|
# Before our posts will show up on the site
|
||||||
|
# we need to build them so they're generated
|
||||||
|
# from our site.hs logic
|
||||||
|
./site build
|
||||||
|
|
||||||
|
# Push to git
|
||||||
|
cd $HOME
|
||||||
|
ssh-add
|
||||||
|
git add .
|
||||||
|
git config user.name "Alice"
|
||||||
|
git config user.email "admin@cutesealfanpage.love"
|
||||||
|
git commit -m "Daily blog update"
|
||||||
|
git push origin main
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
services.jitsi-meet = {
|
services.jitsi-meet = {
|
||||||
enable = false;
|
enable = true;
|
||||||
hostName = "jitsi.crueltysquad.com";
|
hostName = "jitsi.crueltysquad.com";
|
||||||
config = {
|
config = {
|
||||||
enableWelcomePage = false;
|
enableWelcomePage = false;
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
nginx.enable = false;
|
nginx.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.jitsi-videobridge.enable = false;
|
services.jitsi-videobridge.enable = true;
|
||||||
services.jitsi-videobridge.openFirewall = false;
|
services.jitsi-videobridge.openFirewall = true;
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
# security.acme.email = "me@example.com";
|
# security.acme.email = "me@example.com";
|
||||||
# security.acme.acceptTerms = true;
|
# security.acme.acceptTerms = true;
|
||||||
|
|
Loading…
Reference in New Issue