style: format all nix files with nixfmt

This commit is contained in:
2026-10-01 11:40:12 +02:00
parent 4ec579b1fc
commit 2231d2fc3f
21 changed files with 288 additions and 159 deletions
+13 -5
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
email = "aaron@0x29a.ch";
@@ -14,15 +19,18 @@ in
{
# gitea verifies signatures against the account keys, this teaches the local
# git the same trust so `git log --show-signature` resolves as well
xdg.configFile."git/allowed_signers".text =
lib.concatMapStrings (key: "${email} ${key}\n") signingKeys;
xdg.configFile."git/allowed_signers".text = lib.concatMapStrings (
key: "${email} ${key}\n"
) signingKeys;
programs.git = {
enable = true;
settings = {
push = { autoSetupRemote = true; };
push = {
autoSetupRemote = true;
};
user = {
name = "aaron";
name = "aaron";
inherit email;
};
gpg.ssh.allowedSignersFile = "${config.xdg.configHome}/git/allowed_signers";
+11 -3
View File
@@ -57,7 +57,7 @@
servers.pyright.enable = true;
servers.ruff.enable = true;
keymaps.lspBuf = {
"<leader>K" = "hover";
"<leader>K" = "hover";
"<leader>gd" = "definition";
"<leader>gr" = "references";
"<leader>f" = "format";
@@ -67,7 +67,11 @@
};
plugins.treesitter = {
enable = true;
settings.ensure_installed = [ "markdown" "markdown_inline" "typst" ];
settings.ensure_installed = [
"markdown"
"markdown_inline"
"typst"
];
};
plugins.typst-preview = {
enable = true;
@@ -87,7 +91,11 @@
enable = true;
settings = {
# render in normal mode, raw source in insert
render_modes = [ "n" "c" "t"];
render_modes = [
"n"
"c"
"t"
];
pipe_table.preset = "round";
heading.width = "block";
file_types = [ "markdown" ];
+21 -4
View File
@@ -12,7 +12,7 @@
# Use the package from the noctalia flake rather than nixpkgs.
package = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
# settings is rendered to ~/.config/noctalia/config.toml
# settings is rendered to ~/.config/noctalia/config.toml
settings = {
# theme / colors
theme = {
@@ -73,9 +73,22 @@
radius = 0;
scale = 1.2;
widget_spacing = 20;
start = [ "control-center" "cpu" "ram" "temp" "active_window" ];
start = [
"control-center"
"cpu"
"ram"
"temp"
"active_window"
];
center = [ "workspaces" ];
end = [ "tray" "bluetooth" "notifications" "volume" "network" "clock" ];
end = [
"tray"
"bluetooth"
"notifications"
"volume"
"network"
"clock"
];
};
};
@@ -103,7 +116,11 @@
# idle behavior
idle = {
behavior_order = [ "screen-off" "lock" "lock-and-suspend" ];
behavior_order = [
"screen-off"
"lock"
"lock-and-suspend"
];
behavior = {
"screen-off" = {
enabled = true;
+5 -1
View File
@@ -9,7 +9,11 @@
oh-my-zsh = {
enable = true;
# add git and agents as plugins
plugins = [ "git" "ssh-agent" "gpg-agent" ];
plugins = [
"git"
"ssh-agent"
"gpg-agent"
];
# everything here lands before `source $ZSH/oh-my-zsh.sh`
extraConfig = ''
# make omz faster on large repositories
+2 -2
View File
@@ -6,8 +6,8 @@
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
package = pkgs.gnome-themes-extra;
};
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk4.theme = null;
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;