Compare commits

...

10 commits

Author SHA1 Message Date
b08585df28 Trying to get multiple domains using the same Jitsi server
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Gitea Actions Demo / build-site (push) Successful in 10s
2026-09-28 22:33:12 -04:00
43327a567e Update runner script 2026-01-12 00:13:03 -05:00
536bf095b9 Remove emanote from everything 2026-01-12 00:07:36 -05:00
4a38f29273 Remove emanote from flake.parts 2026-01-11 23:44:36 -05:00
ee4ac1d7c8 Try using forgejo instead of gitea 2026-01-11 23:37:09 -05:00
2a05e1888b Update some parts 2026-01-04 02:12:20 -05:00
fb6d498ad5 Add emanotes flake part 2026-01-04 01:46:24 -05:00
203fad17d1 Update running/testing for deployment scripts 2026-01-04 01:09:31 -05:00
5cb2dce159 Switch to user services, for alice to run scripts,
and use systemctl --user cuteseal... to find services.
Runs much better
2026-01-04 01:08:57 -05:00
63224ce917 Downgrade to 25.11, more stable for server 2026-01-03 23:09:00 -05:00
11 changed files with 38 additions and 31 deletions

View file

@ -1 +1 @@
/nix/store/gr5dfsr20jqrim8w0lbhicgdnpwwwhs2-pre-commit-config.json
/nix/store/30f0pr8v6hd0qy799gvjx6vw1zha8v8w-pre-commit-config.json

View file

@ -14,6 +14,7 @@
"emanote",
"Ewanick",
"fancytypist",
"forgejo",
"ghcid",
"gitea",
"gnused",

8
flake.lock generated
View file

@ -79,16 +79,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1767364772,
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
"lastModified": 1767325753,
"narHash": "sha256-yA/CuWyqm+AQo2ivGy6PlYrjZBQm7jfbe461+4HF2fo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
"rev": "64049ca74d63e971b627b5f3178d95642e61cedd",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}

View file

@ -2,7 +2,7 @@
description = "Flake.parts System flake for Linode NixOS server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-parts.url = "github:hercules-ci/flake-parts";
git-hooks-nix.url = "github:cachix/git-hooks.nix";

View file

@ -7,9 +7,10 @@
./ewanick.com.nix
./git.ewanick.com.nix
# ./paperless.ewanick.com.nix
./fancytypist.com.nix
# ./paperless.ewanick.com.nix
];
# when in doubt, clear away the certs with

View file

@ -1,8 +1,8 @@
{pkgs, ...}: let
description = "A future blog powered running solely on Markdown files.";
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
PORT = "5567";
HOST = "localhost";
emanote-version = "1.2.0";
PORT = 5567;
in {
services.caddy = {
enable = true;
@ -10,24 +10,9 @@ in {
"ewanick.com" = {
serverAliases = ["www.ewanick.com"];
extraConfig = ''
reverse_proxy ${HOST}:${PORT}
reverse_proxy ${HOST}:${toString PORT}
'';
};
};
};
systemd.services = {
ewanick-site = {
enable = true;
description = "A blog powered by Emanote running solely on Markdown files.";
path = with pkgs; [
nix
git
];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote/${emanote-version} -- run --port ${PORT} --host ${HOST}
'';
};
};
}

View file

@ -13,4 +13,5 @@ See what I'm currently tinkering with at:\
<https://git.ewanick.com/bill>
:::{.photoframe-center}
!\[[profile.jpg]\]

View file

@ -2,9 +2,9 @@
baseUrl = "git.ewanick.com";
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/git.ewanick.com";
in {
services.gitea = {
services.forgejo = {
enable = true;
appName = "Bill's Gitea server, hosted on Linode using NixOS";
database.type = "postgres";
lfs.enable = true;
settings = {
server = {
@ -12,6 +12,7 @@ in {
ROOT_URL = "https://${baseUrl}/";
HTTP_PORT = 3000;
};
DEFAULT.APP_NAME = "Bill's Forgejo server, hosted on Linode using NixOS";
service.DISABLE_REGISTRATION = true;
actions = {
@ -22,6 +23,7 @@ in {
};
services.gitea-actions-runner = {
package = pkgs.forgejo-runner;
instances.default = {
enable = true;
name = "linode-nixos";

View file

@ -19,4 +19,16 @@
services.jitsi-videobridge.enable = true;
services.jitsi-videobridge.openFirewall = true;
services.caddy = {
enable = true;
virtualHosts = {
"meet.ottawaswingdance.social" = {
extraConfig = ''
header Host meet.ottawaswingdance.social
reverse_proxy 127.0.0.1:5280
'';
};
};
};
}

6
run.sh
View file

@ -1,6 +1,6 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash
sudo nixos-rebuild \
sudo \
nixos-rebuild switch \
--option eval-cache false \
--flake /workspace/deployed-nixos-server-and-apps \
switch
--flake /workspace/deployed-nixos-server-and-apps#linode-nixos

5
test.sh Executable file
View file

@ -0,0 +1,5 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash
nixos-rebuild build \
--option eval-cache false \
--flake /workspace/deployed-nixos-server-and-apps#linode-nixos