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,12 +1,13 @@
{ config, lib, osConfig, ... }:
let
{
config,
lib,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.bash;
admin = osConfig.ooknet.host.admin;
in
{
in {
config = mkIf (cfg.enable || admin.shell == "bash") {
programs.bash.enable = true;
};

View file

@ -1,14 +1,16 @@
{ lib, config, osConfig, pkgs, ... }:
let
{
lib,
config,
osConfig,
pkgs,
...
}: let
inherit (lib) mkIf getExe;
inherit (pkgs) bat eza dust nh;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
in
{
in {
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish = {
shellAliases = {

View file

@ -1,16 +1,18 @@
{ lib, config, osConfig, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
in
{
lib,
config,
osConfig,
...
}: let
inherit (lib) mkIf;
inherit (osConfig.ooknet.host) admin;
cfg = config.ooknet.shell.fish;
in {
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish.functions = {
fish_user_key_bindings = ''
bind --preset -M insert \cf fe
bind --preset -M insert \cf $EDITOR $FLAKE
bind --preset -M insert \ec fzf_cd_widget
'';
};

View file

@ -1,12 +1,14 @@
{ lib, config, osConfig, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
in
{
lib,
config,
osConfig,
...
}: let
inherit (lib) mkIf;
inherit (osConfig.ooknet.host) admin;
cfg = config.ooknet.shell.fish;
in {
imports = [
./plugins.nix
./binds.nix
@ -27,7 +29,8 @@ in
set fish_cursor_insert line blink
set fish_cursor_replace_one underscore blink
set fish_cursor_visual block
'' +
''
+
# Use terminal colors
''
set -U fish_color_autosuggestion brblack
@ -60,4 +63,3 @@ in
};
};
}

View file

@ -1,12 +1,14 @@
{ lib, config, pkgs, osConfig, ... }:
let
{
lib,
config,
pkgs,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.fish;
admin = osConfig.ooknet.host.admin;
in
{
in {
config = mkIf (cfg.enable || admin.shell == "fish") {
programs.fish = {
plugins = [
@ -26,4 +28,3 @@ in
};
};
}

View file

@ -1,16 +1,17 @@
{ lib, config, osConfig, ... }:
let
{
lib,
config,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.zsh;
admin = osConfig.ooknet.host.admin;
in
{
in {
imports = [
./plugins.nix
];
config = mkIf (cfg.enable || admin.shell == "zsh") {
programs.zsh = {
enable = true;

View file

@ -1,12 +1,14 @@
{ lib, pkgs, config, osConfig, ... }:
let
{
lib,
pkgs,
config,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = config.ooknet.shell.zsh;
admin = osConfig.ooknet.host.admin;
in
{
in {
config = mkIf (cfg.enable || admin.shell == "zsh") {
programs.zsh.plugins = [
{