Compare commits
6 commits
6cb774c7c0
...
d9b728aacf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9b728aacf | ||
|
|
f044b17877 | ||
|
|
02779b9d4a | ||
|
|
477fc884be | ||
|
|
39f994fc0b | ||
|
|
8158b6817e |
6
.forgejo/workflows/deploy.yml
Normal file
6
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: self-hosted-nixos-x86_64
|
||||||
|
steps:
|
||||||
|
- run: curl https://cebula.camp/.not-well-known/update
|
||||||
26
default.nix
Normal file
26
default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {}, ... }: let
|
||||||
|
package-json = (builtins.fromJSON (builtins.readFile ./package.json));
|
||||||
|
in pkgs.buildNpmPackage {
|
||||||
|
pname = package-json.name;
|
||||||
|
version = package-json.version;
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
npmDeps = pkgs.importNpmLock {
|
||||||
|
npmRoot = ./.;
|
||||||
|
};
|
||||||
|
|
||||||
|
npmConfigHook = pkgs.importNpmLock.npmConfigHook;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/.next
|
||||||
|
cp -r public $out/
|
||||||
|
cp -r .next/standalone/{.*,*} $out/
|
||||||
|
cp -r .next/static $out/.next
|
||||||
|
mkdir $out/bin
|
||||||
|
echo "#! /usr/bin/env bash" > $out/bin/cebula-site
|
||||||
|
echo 'SOURCE=''${BASH_SOURCE[0]}' >> $out/bin/cebula-site
|
||||||
|
echo 'cd $(dirname $SOURCE)/..' >> $out/bin/cebula-site
|
||||||
|
echo 'exec ${pkgs.nodejs}/bin/node server.js' >> $out/bin/cebula-site
|
||||||
|
chmod +x $out/bin/cebula-site
|
||||||
|
'';
|
||||||
|
}
|
||||||
61
flake.lock
Normal file
61
flake.lock
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1739055578,
|
||||||
|
"narHash": "sha256-2MhC2Bgd06uI1A0vkdNUyDYsMD0SLNGKtD8600mZ69A=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a45fa362d887f4d4a7157d95c28ca9ce2899b70e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
14
flake.nix
Normal file
14
flake.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }: {
|
||||||
|
# nixosModules.default = import ./module.nix self;
|
||||||
|
} // (flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
package-json = (builtins.fromJSON (builtins.readFile ./package.json));
|
||||||
|
in {
|
||||||
|
packages.default = import ./default.nix { inherit pkgs; };
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
||||||
BIN
src/app/[locale]/Oxanium.ttf
Normal file
BIN
src/app/[locale]/Oxanium.ttf
Normal file
Binary file not shown.
|
|
@ -7,10 +7,10 @@ import Head from 'next/head';
|
||||||
|
|
||||||
import { ThemeProvider } from "@/components/providers";
|
import { ThemeProvider } from "@/components/providers";
|
||||||
import { translations } from "@/i18n/translations";
|
import { translations } from "@/i18n/translations";
|
||||||
import { headers } from "next/headers";
|
|
||||||
|
|
||||||
import { oxanium } from "@/fonts";
|
import { oxanium } from "@/fonts";
|
||||||
import type { Metadata } from 'next';
|
import type { Metadata } from 'next';
|
||||||
|
import { headers } from "next/headers";
|
||||||
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
import { Oxanium } from "next/font/google";
|
import localFont from "next/font/local";
|
||||||
|
export const oxanium = localFont({ src: "./Oxanium.ttf" });
|
||||||
export const oxanium = Oxanium({ subsets: ["latin-ext"] })
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue