Compare commits
6 commits
d4e8bde4cd
...
4fbdadbe6f
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fbdadbe6f | |||
| 74ef513616 | |||
| 6bed137ccf | |||
| 6e68c63a54 | |||
| cfcf6f707a | |||
| 2a4321bfa6 |
11 changed files with 51 additions and 6 deletions
2
.envrc
2
.envrc
|
|
@ -1,2 +1,2 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
use flake
|
use flake . --builders ""
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,24 @@
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [9090];
|
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 = [
|
home-manager.users.moritz.services.kanshi.settings = [
|
||||||
{
|
{
|
||||||
profile.name = "default";
|
profile.name = "default";
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,14 @@ description = "Stay a while :)"
|
||||||
compile_sass = true
|
compile_sass = true
|
||||||
|
|
||||||
# Whether to build a search index to be used later on by a JavaScript library
|
# 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.
|
# The site theme to use.
|
||||||
theme = "anemone"
|
theme = "anemone"
|
||||||
|
|
||||||
|
# When set to "true", a feed is automatically generated.
|
||||||
|
generate_feeds = false
|
||||||
|
|
||||||
[markdown]
|
[markdown]
|
||||||
# Whether to do syntax highlighting
|
# Whether to do syntax highlighting
|
||||||
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
+++
|
+++
|
||||||
+++
|
+++
|
||||||
Hello World!
|
|
||||||
|
# Links
|
||||||
|
- {{ mastodon_root(text="mastodon") }}
|
||||||
|
- [git](https://git.moritzboeh.me/)
|
||||||
|
- [mail](mailto:contact@moritz.place)
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,16 @@
|
||||||
installPhase = "cp -r public $out";
|
installPhase = "cp -r public $out";
|
||||||
};
|
};
|
||||||
in {
|
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;
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
machines/moritz-server/website/root/templates/robots.txt
Normal file
5
machines/moritz-server/website/root/templates/robots.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
User-agent: *
|
||||||
|
Allow: /$
|
||||||
|
Allow: /{{ get_url(path="sitemap.xml") }}
|
||||||
|
Disallow: /
|
||||||
|
Sitemap: {{ get_url(path="sitemap.xml") }}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<meta name="fediverse:creator" content="@moritz@functional.cafe">
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<a rel="me" href="https://functional.cafe/@moritz">{{ text | safe }}</a>
|
||||||
|
|
@ -65,7 +65,6 @@ in {
|
||||||
'';
|
'';
|
||||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
darkreader
|
darkreader
|
||||||
firefox-color
|
|
||||||
istilldontcareaboutcookies
|
istilldontcareaboutcookies
|
||||||
kagi-search
|
kagi-search
|
||||||
keepassxc-browser
|
keepassxc-browser
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,9 @@ in {
|
||||||
loadingText = "Creating conventional commit...";
|
loadingText = "Creating conventional commit...";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
git = {
|
||||||
|
overrideGpg = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ in {
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
|
|
||||||
package = pkgs.lix;
|
package = pkgs.nix; # TODO: change this back
|
||||||
|
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue