chore: Use nixfmt reformat all nix source code

This commit is contained in:
ulic-youthlic 2026-07-04 23:11:21 +08:00
parent 1cdf00cefe
commit 11337b8f9e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
184 changed files with 2349 additions and 1943 deletions

View file

@ -3,9 +3,11 @@
config,
lib,
...
}: let
}:
let
cfg = config.youthlic.programs.jujutsu;
in {
in
{
options = {
youthlic.programs.jujutsu = {
enable = lib.mkEnableOption "jujutsu";
@ -26,7 +28,7 @@ in {
};
name = lib.mkOption {
type = lib.types.str;
example = ''youthlic'';
example = "youthlic";
description = ''
jujutsu name
'';
@ -43,10 +45,27 @@ in {
settings = {
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json";
aliases = {
dlog = ["log" "-r"];
l = ["log" "-r" "(trunk()..@):: | (trunk()..@)-"];
fresh = ["new" "trunk()"];
tug = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "closest_pushable(@)"];
dlog = [
"log"
"-r"
];
l = [
"log"
"-r"
"(trunk()..@):: | (trunk()..@)-"
];
fresh = [
"new"
"trunk()"
];
tug = [
"bookmark"
"move"
"--from"
"closest_bookmark(@)"
"--to"
"closest_pushable(@)"
];
};
snapshot = {
auto-track = "true";
@ -84,7 +103,8 @@ in {
};
revset-aliases = {
"closest_bookmark(to)" = "heads(::to & bookmarks())";
"closest_pushable(to)" = "heads(::to & mutable() & ~description(exact:\"\") & (~empty() | merges()))";
"closest_pushable(to)" =
"heads(::to & mutable() & ~description(exact:\"\") & (~empty() | merges()))";
"desc(x)" = "description(x)";
"pending()" = ".. ~ ::tags() ~ ::remote_bookmarks() ~ @ ~ private()";
"private()" = ''