Compare commits

...

6 commits

11 changed files with 51 additions and 6 deletions

2
.envrc
View file

@ -1,2 +1,2 @@
# shellcheck shell=bash
use flake
use flake . --builders ""

View file

@ -45,6 +45,24 @@
networking.firewall.allowedTCPPorts = [9090];
# TODO: make this its own module!
home-manager.users.moritz.programs.jujutsu = {
enable = true;
settings = {
user = {
email = "mail@moritzboeh.me";
name = "Moritz Böhme";
};
ui.paginate = "never";
signing = {
behavior = "drop";
backend = "gpg";
key = "0x970C6E89EB0547A9";
};
git.sign-on-push = true;
};
};
home-manager.users.moritz.services.kanshi.settings = [
{
profile.name = "default";

View file

@ -9,11 +9,14 @@ description = "Stay a while :)"
compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
build_search_index = false # NOTE: enable this when adding a search script
# The site theme to use.
theme = "anemone"
# When set to "true", a feed is automatically generated.
generate_feeds = false
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola

View file

@ -1,3 +1,7 @@
+++
+++
Hello World!
# Links
- {{ mastodon_root(text="mastodon") }}
- [git](https://git.moritzboeh.me/)
- [mail](mailto:contact@moritz.place)

View file

@ -22,5 +22,16 @@
installPhase = "cp -r public $out";
};
in {
services.nginx.virtualHosts."moritz.place".locations."/".root = "${package}";
services.nginx.virtualHosts."moritz.place".root = "${package}";
services.nginx.virtualHosts."moritz.place".locations."/" = {
index = "index.html";
tryFiles = ''"''${uri}.html" $uri $uri/ =404'';
};
services.nginx.virtualHosts."moritz.place".extraConfig = ''
error_page 404 /404.html;
location = /404.html {
internal;
}
'';
}

View file

@ -0,0 +1,5 @@
User-agent: *
Allow: /$
Allow: /{{ get_url(path="sitemap.xml") }}
Disallow: /
Sitemap: {{ get_url(path="sitemap.xml") }}

View file

@ -0,0 +1 @@
<meta name="fediverse:creator" content="@moritz@functional.cafe">

View file

@ -0,0 +1 @@
<a rel="me" href="https://functional.cafe/@moritz">{{ text | safe }}</a>

View file

@ -65,7 +65,6 @@ in {
'';
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
darkreader
firefox-color
istilldontcareaboutcookies
kagi-search
keepassxc-browser

View file

@ -137,6 +137,9 @@ in {
loadingText = "Creating conventional commit...";
}
];
git = {
overrideGpg = true;
};
};
};
};

View file

@ -30,7 +30,7 @@ in {
nix = {
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
package = pkgs.lix;
package = pkgs.nix; # TODO: change this back
extraOptions = ''
experimental-features = nix-command flakes