style: use alejandra formatter on all nix files

This commit is contained in:
Yorick Barbanneau 2025-09-25 23:33:01 +02:00
parent d563805909
commit 0d8a394dcf
Signed by: ephase
GPG key ID: 246042E52B41FFCF
76 changed files with 1287 additions and 935 deletions

View file

@ -1,9 +1,11 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.application.foot;
in
{
lib,
config,
...
}:
with lib; let
cfg = config.modules.application.foot;
in {
options.modules.application.foot = {
enable = mkEnableOption "enable Foot terminal emulator";
@ -65,7 +67,7 @@ in
selection-foreground = "181818";
urls = "b8b8b8";
jump-labels = "181818 f7ca88";
scrollback-indicator= "181818 b8b8b8";
scrollback-indicator = "181818 b8b8b8";
};
scrollback = {
lines = cfg.scrollback-lines;

View file

@ -1,9 +1,12 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.application.gnupg;
in
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.modules.application.gnupg;
in {
options.modules.application.gnupg = {
enable = mkEnableOption "enable GnuPG and related utils";
@ -20,7 +23,6 @@ in
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
# pinentry-gnome
gcr
@ -46,7 +48,10 @@ in
noAllowExternalCache = true;
};
services.ssh-agent.enable = if cfg.enableSshSupport then false else true;
services.ssh-agent.enable =
if cfg.enableSshSupport
then false
else true;
programs.password-store = {
enable = cfg.pass;
};

View file

@ -1,9 +1,12 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.application.imv;
in
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.modules.application.imv;
in {
options.modules.application.imv = {
enable = mkEnableOption "enable IMV image viewer";
@ -12,14 +15,13 @@ in
default = true;
description = "install Package, if false relies on distribution packages";
};
};
config = mkIf cfg.enable {
programs.imv = {
enable = true;
};
xdg.mimeApps.defaultApplications = {
"image/*" = "imv-dir.desktop";
"image/*" = "imv-dir.desktop";
};
};
}

View file

@ -1,9 +1,11 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.application.zathura;
in
{
lib,
config,
...
}:
with lib; let
cfg = config.modules.application.zathura;
in {
options.modules.application.zathura = {
enable = mkEnableOption "enable Zathura PDF viewer";
};
@ -17,7 +19,7 @@ in
};
};
xdg.mimeApps.defaultApplications = {
"application/pdf" = "org.pwmt.zathura.desktop";
"application/pdf" = "org.pwmt.zathura.desktop";
};
};
}