Compare commits
No commits in common. "d8cdd7a912c8842b616fd978839b812cd58adf1c" and "1675c5f193a9b86fd4054afc7f0ecea512c84c81" have entirely different histories.
d8cdd7a912
...
1675c5f193
3 changed files with 2 additions and 111 deletions
|
@ -1,102 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.meta) getExe;
|
|
||||||
|
|
||||||
toml = pkgs.formats.toml {};
|
|
||||||
jj-config = toml.generate "config.toml" {
|
|
||||||
user = {
|
|
||||||
name = "Bloxx12";
|
|
||||||
email = "charlie@charlieroot.dev";
|
|
||||||
};
|
|
||||||
|
|
||||||
ui = {
|
|
||||||
pager = ["${getExe pkgs.bat}" "--plain"];
|
|
||||||
default-command = "log";
|
|
||||||
movement.edit = true;
|
|
||||||
|
|
||||||
diff.tool = ["${getExe pkgs.difft}" "--color" "always" "$left" "$right"];
|
|
||||||
};
|
|
||||||
# FIXME: do this with agenix
|
|
||||||
# "--scope" = [
|
|
||||||
# {
|
|
||||||
# "--when.repositories" = ["~/repos/projects/uni"];
|
|
||||||
# user = {
|
|
||||||
# # TODO
|
|
||||||
# name = "";
|
|
||||||
# email = "";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# "--when.repositories" = ["~/repos/projects/uni/"];
|
|
||||||
# user = {
|
|
||||||
# # TODO
|
|
||||||
# name = "";
|
|
||||||
# email = "";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
git.push-new-bookmarks = true;
|
|
||||||
|
|
||||||
signing = {
|
|
||||||
behaviour = "own";
|
|
||||||
backend = "ssh";
|
|
||||||
key = ["ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAAWEDj/Yib6Mqs016jx7rtecWpytwfVl28eoHtPYCM9TVLq81VIHJSN37lbkc/JjiXCdIJy2Ta3A3CVV5k3Z37NbgAu23oKA2OcHQNaRTLtqWlcBf9fk9suOkP1A3NzAqzivFpBnZm3ytaXwU8LBJqxOtNqZcFVruO6fZxJtg2uE34mAw=="];
|
|
||||||
};
|
|
||||||
|
|
||||||
aliases = {
|
|
||||||
c = ["commit"];
|
|
||||||
ci = ["commit" "--interactive"];
|
|
||||||
|
|
||||||
e = ["edit"];
|
|
||||||
|
|
||||||
# "new bookmark"
|
|
||||||
nb = ["bookmark" "create" "-r @-"];
|
|
||||||
|
|
||||||
pull = ["git" "fetch"];
|
|
||||||
push = ["git" "push" "--allow-new"];
|
|
||||||
|
|
||||||
r = ["rebase"];
|
|
||||||
s = ["squash"];
|
|
||||||
si = ["squash" "--interactive"];
|
|
||||||
|
|
||||||
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
|
|
||||||
};
|
|
||||||
revset-aliases = {
|
|
||||||
"closest_bookmark(to)" = "heads(::to & bookmarks())";
|
|
||||||
};
|
|
||||||
|
|
||||||
templates = {
|
|
||||||
draft_commit_description = ''
|
|
||||||
concat(
|
|
||||||
coalesce(description, "\n"),
|
|
||||||
surround(
|
|
||||||
"\nJJ: This commit contains the following changes:\n", "",
|
|
||||||
indent("JJ: ", diff.stat(72)),
|
|
||||||
),
|
|
||||||
"\nJJ: ignore-rest\n",
|
|
||||||
diff.git(),
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
template-aliases = {
|
|
||||||
"format_short_id(id)" = "id.shortest()";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
jj-wrapped = pkgs.symlinkJoin {
|
|
||||||
name = "jj-wrapped";
|
|
||||||
paths = [pkgs.jj];
|
|
||||||
nativeBuildInputs = [pkgs.makeWrapper];
|
|
||||||
postBuild = ''
|
|
||||||
wrapProgram $out/bin/mako --add-flags "\
|
|
||||||
--config ${jj-config}
|
|
||||||
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
environment.systemPackages = [jj-wrapped];
|
|
||||||
}
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
# email to send updates to, we prefix "acme" and the
|
# email to send updates to, we prefix "acme" and the
|
||||||
# name of the domain the certificate is for to it.
|
# name of the domain the certificate is for to it.
|
||||||
email = "charlie@charlieroot.dev";
|
email = "acme+${domain}+charlie@charlieroot.dev";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -30,11 +30,4 @@ in {
|
||||||
"mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
|
"mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.appendConfig = ''
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
rewrite /.well-known/acme-challenge/(.*) /$1 break;
|
|
||||||
root /var/lib/acme/.well-known/acme-challenge;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ in {
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.postgresql_17;
|
package = pkgs.postgresql_17;
|
||||||
# NOTE: it is imperative to create this manually when starting postgresql.
|
# NOTE: it is imperative to create this when starting postgresql!
|
||||||
dataDir = "/srv/data/postgresql/${config.services.postgresql.package.psqlSchema}";
|
dataDir = "/srv/data/postgresql/${config.services.postgresql.package.psqlSchema}";
|
||||||
|
|
||||||
# Whether PostgreSQL should listen on all network interfaces.
|
# Whether PostgreSQL should listen on all network interfaces.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue