Commit graph

57 commits

Author SHA1 Message Date
Tristan Daniël Maat 13fa5cbdc0
server: Update cargo dependencies 2023-01-21 05:23:43 +00:00
Tristan Daniël Maat fc55c9a9b8
flake.lock: Update
Flake lock file updates:

• Updated input 'dream2nix':
    'github:nix-community/dream2nix/9f6911c78dcb0832f7fcc955e847db1a5a9ce29a' (2023-01-02)
  → 'github:nix-community/dream2nix/f11fa0fcedb1a966e86904d772c1574f36f3dfc9' (2023-01-19)
• Updated input 'fenix':
    'github:nix-community/fenix/eb6583fcd626051c4d284f2fb51cd2659a43e7f6' (2023-01-04)
  → 'github:nix-community/fenix/d8067f4d1d3d30732703209bec5ca7d62aaececc' (2023-01-20)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/a97c71f92d574cb5104e3e1246eb9038d1a214a2' (2023-01-03)
  → 'github:rust-lang/rust-analyzer/6e52c64031825920983515b9e975e93232739f7f' (2023-01-19)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/a9eedea7232f5d00f0aca7267efb69a54da1b8a1' (2023-01-03)
  → 'github:nixos/nixpkgs/b83e7f5a04a3acc8e92228b0c4bae68933d504eb' (2023-01-17)
2023-01-21 05:23:22 +00:00
Tristan Daniël Maat d142e98788
flake.nix: Add update script 2023-01-21 05:09:31 +00:00
Tristan Daniël Maat 5c537df885
flake.nix: Fix broken template devshell 2023-01-21 04:49:37 +00:00
Tristan Daniël Maat b2894e4fef
treewide: Update and adapt to new dream2nix project.toml 2023-01-05 02:13:13 +00:00
Tristan Daniël Maat f034fbe7e4
templates: Update npm packages 2022-12-15 20:49:50 +00:00
Tristan Daniël Maat c38292b0f5
server: Update cargo packages 2022-12-10 19:08:16 +00:00
Tristan Daniël Maat 34fa440f52
flake.lock: Update
Flake lock file updates:

• Updated input 'dream2nix':
    'github:nix-community/dream2nix/25be741ec92c77b8308ca6a7ab89593fe37b6542' (2022-09-16)
  → 'github:nix-community/dream2nix/a46b77e2243415ff5eb76b8b35277c0a9b9b072c' (2022-12-10)
• Added input 'dream2nix/all-cabal-json':
    'github:nix-community/all-cabal-json/d7c0434eebffb305071404edcf9d5cd99703878e' (2022-10-12)
• Updated input 'dream2nix/crane':
    'github:ipetkov/crane/d9f394e4e20e97c2a60c3ad82c2b6ef99be19e24' (2022-08-30)
  → 'github:ipetkov/crane/2243fb9c872de25cb564a02d324ea6a5b9853052' (2022-12-05)
• Updated input 'dream2nix/devshell':
    'github:numtide/devshell/fc7a3e3adde9bbcab68af6d1e3c6eb738e296a92' (2022-05-30)
  → 'github:numtide/devshell/e3dc3e21594fe07bdb24bdf1c8657acaa4cb8f66' (2022-09-17)
• Added input 'dream2nix/flake-parts':
    'github:hercules-ci/flake-parts/d591857e9d7dd9ddbfba0ea02b43b927c3c0f1fa' (2022-11-14)
• Added input 'dream2nix/flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/34c5293a71ffdb2fe054eb5288adc1882c1eb0b1?dir=lib' (2022-10-09)
• Added input 'dream2nix/ghc-utils':
    'git+https://gitlab.haskell.org/bgamari/ghc-utils?ref=refs%2fheads%2fmaster&rev=bb3a2d3dc52ff0253fb9c2812bd7aa2da03e0fea' (2022-09-10)
• Added input 'dream2nix/nix-pypi-fetcher':
    'github:DavHau/nix-pypi-fetcher/a9885ac6a091576b5195d547ac743d45a2a615ac' (2022-11-21)
• Updated input 'dream2nix/nixpkgs':
    'github:NixOS/nixpkgs/d80993b5f885515254746ba6d1917276ee386149' (2022-07-12)
  → 'github:NixOS/nixpkgs/f634d427b0224a5f531ea5aa10c3960ba6ec5f0f' (2022-10-12)
• Updated input 'dream2nix/poetry2nix':
    'github:nix-community/poetry2nix/aee8f04296c39d88155e05d25cfc59dfdd41cc77' (2021-09-30)
  → 'github:nix-community/poetry2nix/289efb187123656a116b915206e66852f038720e' (2022-10-28)
• Updated input 'fenix':
    'github:nix-community/fenix/263cd7f991c07a9592a6e825bfc37b23b00eb244' (2022-09-17)
  → 'github:nix-community/fenix/2745d0c04a278231140125b81996d23fe00d923c' (2022-12-10)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/2e9f1204ca01c3e20898d4a67c8b84899d394a88' (2022-09-11)
  → 'github:rust-lang/rust-analyzer/14492043dba29d626ea98667c3c7c0002f75feff' (2022-12-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/178fea1414ae708a5704490f4c49ec3320be9815' (2022-09-15)
  → 'github:nixos/nixpkgs/7a6a010c3a1d00f8470a5ca888f2f927f1860a19' (2022-12-08)
2022-12-10 19:01:41 +00:00
Tristan Daniël Maat 5d037f9122
module: Fix broken defaults for the address to listen on 2022-10-14 12:18:23 +01:00
Tristan Daniël Maat 3155d665ff
checks: Add assertion that the module defaults work 2022-10-14 12:18:20 +01:00
Tristan Daniël Maat 6c29bc5db0
templates: Fix awkward typed title wrapping on phones
Fixes #19
2022-10-10 12:47:31 +01:00
Tristan Daniël Maat 767961cde4
templates: Fix scss indenting in emacs 2022-10-10 12:47:24 +01:00
Tristan Daniël Maat b1a83cdf2f
templates/src/music: Fix visualizer aspect ratio 2022-10-05 12:35:08 +01:00
Tristan Daniël Maat f8b7b45260
templates: Add project run command to dir-locals 2022-10-05 12:35:05 +01:00
Tristan Daniël Maat 73b9fbf612
server: Limit the scope of a mutable variable 2022-10-05 12:35:03 +01:00
Tristan Daniël Maat 4fb60f251a
server: Set up logging by default 2022-10-05 12:35:00 +01:00
Tristan Daniël Maat 9189add418
server: Add dir-locals with server-specific dev settings 2022-10-05 12:34:58 +01:00
Tristan Daniël Maat b88937af54
flake.nix: Add basic check for opening the home page 2022-10-05 12:34:56 +01:00
Tristan Daniël Maat b76e61a55a
flake.nix: Add NixOS module 2022-10-05 12:34:53 +01:00
Tristan Daniël Maat 38c2999291
flake.nix: Add app for convenient testing with nix run 2022-10-05 12:34:50 +01:00
Tristan Daniël Maat 8b83eb74f1
templates: Update dependencies 2022-10-05 12:34:48 +01:00
Tristan Daniël Maat 07a0809b4d
templates/package.yaml: Move posthtml config into package.yaml 2022-10-05 12:34:46 +01:00
Tristan Daniël Maat 9fb195819e
templates: Handle package.json conversion in direnv
By splitting out the check for package.yaml into a separate check, we
can avoid the constant massive shell reloads for the nix shell.
2022-10-05 12:34:43 +01:00
Tristan Daniël Maat 76f5246814
Integrate templates project 2022-10-05 12:34:38 +01:00
Tristan Daniël Maat 3a5d4b9756
flake.nix: Update inputs and fix nix run command 2022-09-16 17:43:51 +01:00
Tristan Daniël Maat f0f799a693
template_utils.rs: Add error message when a template can't be found 2022-09-16 17:42:41 +01:00
Tristan Daniël Maat 20a6291ac9
main.rs: Add comment about better error handling 2022-09-16 17:22:46 +01:00
Tristan Daniël Maat b653d3a3f6
errors.rs: Remove superfluous comment 2022-09-16 17:18:03 +01:00
Tristan Daniël Maat 527c476fb4
.dir-locals.el: Set up projectile run command 2022-09-16 17:16:32 +01:00
Tristan Daniël Maat a960bf4b27
Use actix-web 4.2.1 features to clean up resource handling 2022-09-16 17:16:12 +01:00
Tristan Daniël Maat 9035cf5419
Implement template args more nicely 2022-09-12 18:15:01 +01:00
Tristan Daniël Maat 627a7525f3
Factor out resources 2022-09-12 18:14:58 +01:00
Tristan Daniël Maat 91e905730e
Handle post to mail page 2022-09-12 18:14:52 +01:00
Tristan Daniël Maat 2847dad110
Add index page rendering 2022-09-12 18:14:06 +01:00
Tristan Daniël Maat ab405fc1f8
Add proper error handling 2022-09-12 18:13:54 +01:00
Tristan Daniël Maat 98d71f0311
Add dev mode 2022-08-16 23:51:07 +01:00
Tristan Daniël Maat d75acc8d05
Clean up error handling, logging and 404 correctly for static files 2022-08-16 23:50:54 +01:00
Tristan Daniël Maat 0f736978f3
Reimplement basic static (+handlebars) file hosting with actix-web 2022-08-15 01:26:45 +01:00
Tristan Daniël Maat 26ec66d03e
Refactor and update flake 2022-08-14 00:28:06 +01:00
Tristan Daniël Maat e7c9222070
Update to NixOS 22.05 2022-06-20 14:46:36 +01:00
Tristan Daniël Maat 9c28ac6de1
Update cargo deps 2022-06-20 14:46:26 +01:00
Tristan Daniël Maat 1232950c06
Cargo.lock: Update dependencies 2021-10-05 12:25:30 +01:00
Tristan Daniël Maat 017bd257c7
flake.lock: Update
Flake lock file changes:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/5466c5bbece17adaab2d82fae80b46e807611bf3' (2021-02-28)
  → 'github:numtide/flake-utils/7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19' (2021-09-13)
• Updated input 'naersk':
    'github:nmattia/naersk/e0fe990b478a66178a58c69cf53daec0478ca6f9' (2021-03-03)
  → 'github:nmattia/naersk/ee7edec50b49ab6d69b06d62f1de554efccb1ccd' (2021-09-21)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/310885ec804f9fa0db5c705c7f5d35d415f50564' (2021-03-29)
  → 'github:nixos/nixpkgs/a13824fe5e38187fbc75cd598b5c06bdcc13501f' (2021-09-23)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/38766381042021f547a168ebb3f10305dc6fde08' (2021-03-30)
  → 'github:oxalica/rust-overlay/9c2fc6a62ccbc6f420d71ecac6bf0b84dbbee64f' (2021-10-05)
2021-10-05 12:17:57 +01:00
Tristan Daniël Maat ff25f151d3
Rename flake packages collection 2021-04-09 19:17:37 +01:00
Tristan Daniël Maat ba9fa8f37d
Rename the package to tlaternet-webserver
This is less confusing than naming it the same as the server domain
name.
2021-04-09 19:17:35 +01:00
Tristan Daniël Maat 697d8b8b2c
Remove obsolete nix file 2021-03-31 22:33:10 +01:00
Tristan Daniël Maat 9698113ab3
Update cargo deps 2021-03-31 22:26:27 +01:00
Tristan Daniël Maat 68d5b081b1
Include a package in the flake 2021-03-31 22:26:19 +01:00
Tristan Daniël Maat 620b84fd46
Use a nix flake with oxalica/rust-overlay instead of a shell.nix 2021-03-31 02:36:00 +01:00
Tristan Daniël Maat c51feeac77
Update cargo dependencies 2020-10-30 23:49:41 +00:00