[fix] *.nix: reformat with alejandra

This commit is contained in:
Jalil David Salamé Messina 2024-05-04 20:57:33 +02:00
parent 876dc45719
commit 39c2fb096c
Signed by: jalil
GPG key ID: F016B9E770737A0B
26 changed files with 565 additions and 562 deletions

View file

@ -1,5 +1,8 @@
{ config, lib, ... }:
let
{
config,
lib,
...
}: let
inherit (config) jhome;
inherit (cfg.defaultIdentity) signingKey;
@ -7,9 +10,8 @@ let
hasConfig = jhome.enable && cfg != null;
hasKey = signingKey != null;
gpgHome = config.programs.gpg.homedir;
unlockKey = hasConfig && cfg.gpg.unlockKeys != [ ];
in
{
unlockKey = hasConfig && cfg.gpg.unlockKeys != [];
in {
config = lib.mkMerge [
(lib.mkIf hasConfig {
programs.git = {
@ -21,7 +23,7 @@ in
};
};
programs.jujutsu.settings = {
user = lib.mkIf (cfg.defaultIdentity != null) { inherit (cfg.defaultIdentity) name email; };
user = lib.mkIf (cfg.defaultIdentity != null) {inherit (cfg.defaultIdentity) name email;};
signing = lib.mkIf hasKey {
sign-all = true;
backend = "gpg";