refactor(treewide): format with alejandra

This commit is contained in:
ooks-io 2024-07-29 15:00:38 +12:00
parent 7fefb94400
commit 61cef505da
216 changed files with 5995 additions and 3969 deletions

View file

@ -1,11 +1,11 @@
{ lib, config, ... }:
let
{
lib,
config,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.cursor;
in
{
in {
config = mkIf cfg.enable {
home.pointerCursor = {
package = cfg.package;
@ -16,4 +16,3 @@ in
};
};
}

View file

@ -1,4 +1,4 @@
{
{
imports = [
./fonts.nix
./cursor.nix

View file

@ -1,21 +1,21 @@
{ lib, config, pkgs, ... }:
let
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.fonts;
in
{
in {
config = mkIf cfg.enable {
fonts.fontconfig.enable = true;
home.packages = [
home.packages = [
cfg.monospace.package
cfg.regular.package
pkgs.noto-fonts
pkgs.noto-fonts-cjk
pkgs.noto-fonts-emoji
];
];
};
}

View file

@ -1,12 +1,15 @@
{ config, pkgs, inputs, lib, ... }:
let
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
{
config,
pkgs,
inputs,
lib,
...
}: let
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
inherit (lib) mkIf;
cfg = config.ooknet.gtk;
in
{
config = mkIf cfg.enable (rec {
in {
config = mkIf cfg.enable rec {
gtk = {
enable = true;
font = {
@ -15,7 +18,7 @@ in
};
theme = {
name = config.colorscheme.slug;
package = gtkThemeFromScheme { scheme = config.colorscheme; };
package = gtkThemeFromScheme {scheme = config.colorscheme;};
};
iconTheme = {
name = "Papirus-Dark";
@ -30,6 +33,5 @@ in
"Net/IconThemeName" = gtk.iconTheme.name;
};
};
});
};
}

View file

@ -1,15 +1,16 @@
{ config, lib, pkgs, ... }:
let
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.qt;
in
{
in {
config = mkIf cfg.enable {
qt = {
enable = true;
style.name = "gtk2";
style.name = "gtk2";
platformTheme.name = "gtk2";
};

View file

@ -1,19 +1,23 @@
{ lib, config, inputs, pkgs, osConfig, ... }:
let
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme;
{
lib,
config,
inputs,
pkgs,
osConfig,
...
}: let
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) nixWallpaperFromScheme;
inherit (lib) mkDefault mkIf;
monitors = osConfig.ooknet.host.hardware.monitors;
cfg = config.ooknet.wallpaper;
in
{
in {
config = mkIf cfg.enable {
ooknet.wallpaper.path =
let
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
largestWidth = largest (x: x.width) monitors;
largestHeight = largest (x: x.height) monitors;
in
ooknet.wallpaper.path = let
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
largestWidth = largest (x: x.width) monitors;
largestHeight = largest (x: x.height) monitors;
in
mkDefault (nixWallpaperFromScheme
{
scheme = config.colorscheme;
@ -23,4 +27,3 @@ in
});
};
}