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,12 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
in
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.sway;
in {
options.modules.desktop.sway = {
enable = mkEnableOption "enable Sway Windows Manager";
@ -72,7 +75,6 @@ in
};
cpuThermal = {
thermalZone = mkOption {
type = types.nullOr types.int;
default = null;
@ -117,7 +119,6 @@ in
./includes/waybar.nix
];
config = mkIf cfg.enable {
programs.fuzzel.enable = true;
home.packages = with pkgs; [
@ -181,11 +182,11 @@ in
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
};
qt = {
enable = true;
qt = {
enable = true;
platformTheme.name = "adwaita";
style.name = "adwaita-dark";
};
};
xdg = {
enable = true;
mimeApps.enable = true;
@ -211,8 +212,8 @@ in
config = {
sway = {
default = [
"wlr"
"gtk"
"wlr"
"gtk"
];
};
};
@ -223,7 +224,7 @@ in
# choose the right screen. This is a workarount to not have to configure
# it manually.
home.file = mkIf cfg.xdg.useDistributionPortals {
"${config.xdg.configHome}/xdg-desktop-portal-wlr/config".text = ''
"${config.xdg.configHome}/xdg-desktop-portal-wlr/config".text = ''
[screencast]
max_fps=30
chooser_type=simple