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;
desktop = config.ooknet.desktop;
in
{
in {
config = mkIf (desktop.environment == "hyprland") {
ooknet.wayland = {
enable = true;

View file

@ -1,12 +1,12 @@
{ osConfig, lib, ... }:
let
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
in {
config = mkIf (elem "console-tools" profiles) {
ooknet.tools = {
btop.enable = true;

View file

@ -1,12 +1,12 @@
{ osConfig, lib, ... }:
let
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
in {
config = mkIf (elem "creative" profiles) {
ooknet.creative = {
audacity.enable = true;

View file

@ -1,12 +1,12 @@
{ osConfig, lib, ... }:
let
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
in {
config = mkIf (elem "gaming" profiles) {
ooknet.gaming = {
wine.enable = true;

View file

@ -1,12 +1,12 @@
{ osConfig, lib, ... }:
let
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
in {
config = mkIf (elem "media" profiles) {
ooknet.media = {
image = {

View file

@ -1,12 +1,12 @@
{ osConfig, lib, ... }:
let
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = osConfig.ooknet.host.profiles;
in
{
in {
config = mkIf (elem "productiviy" profiles) {
ooknet.productivity = {
notes.obsidian.enable = true;

View file

@ -1,15 +1,16 @@
{ lib, config, pkgs, inputs, ... }:
let
{
lib,
config,
pkgs,
inputs,
...
}: let
inherit (inputs.nix-colors) colorSchemes;
inherit (lib) mkIf;
theme = config.ooknet.theme;
in
{
imports = [ inputs.nix-colors.homeManagerModule ];
in {
imports = [inputs.nix-colors.homeManagerModule];
config = mkIf (theme == "minimal") {
colorscheme = colorSchemes.gruvbox-material-dark-medium;
home.file.".colorscheme".text = config.colorscheme.slug;
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
@ -22,7 +23,7 @@ in
};
fonts.monospace = {
family = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
};
cursor.enable = true;
@ -35,7 +36,7 @@ in
wallpaper = {
enable = true;
};
gtk.enable = true;
qt.enable = true;
};

View file

@ -1,14 +1,15 @@
{ lib, config, pkgs, inputs, ... }:
let
{
lib,
config,
pkgs,
inputs,
...
}: let
inherit (inputs.nix-colors) colorSchemes;
inherit (lib) mkIf;
theme = config.ooknet.theme;
in
{
in {
config = mkIf (theme == "phone") {
colorscheme = colorSchemes.gruvbox-material-dark-soft;
home.file.".colorscheme".text = config.colorscheme.slug;
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
@ -21,7 +22,7 @@ in
};
fonts.monospace = {
family = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
};
};
};