refactor(treewide): format with alejandra
This commit is contained in:
parent
7fefb94400
commit
61cef505da
216 changed files with 5995 additions and 3969 deletions
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.cursor = {
|
||||
enable = mkEnableOption "Enable cursor module";
|
||||
package = mkOption {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
mkFontOption = kind: {
|
||||
family = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
|
@ -15,8 +13,7 @@ let
|
|||
example = "pkgs.fira-code";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.ooknet.fonts = {
|
||||
enable = lib.mkEnableOption "Whether to enable font profiles";
|
||||
monospace = mkFontOption "monospace";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.gtk.enable = mkEnableOption "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.qt.enable = mkEnableOption "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib.types) nullOr enum;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.theme = mkOption {
|
||||
type = nullOr (enum [ "minimal" "phone" ]);
|
||||
type = nullOr (enum ["minimal" "phone"]);
|
||||
default = null;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) types mkEnableOption mkOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.wallpaper = {
|
||||
enable = mkEnableOption "";
|
||||
path = mkOption {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.editor = {
|
||||
helix.enable = mkEnableOption "";
|
||||
nvim.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.multiplexer = {
|
||||
zellij.enable = mkEnableOption "";
|
||||
tmux.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
{ lib , ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.shell = {
|
||||
fish.enable = mkEnableOption "";
|
||||
zsh.enable = mkEnableOption "";
|
||||
bash.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.tools = {
|
||||
btop.enable = mkEnableOption "";
|
||||
eza.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
mkBind = message: lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "${pkgs.libnotify}/bin/notify-send --urgency=normal 'Warning' '${message}'";
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
mkBind = message:
|
||||
lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "${pkgs.libnotify}/bin/notify-send --urgency=normal 'Warning' '${message}'";
|
||||
};
|
||||
in {
|
||||
options.ooknet.binds = {
|
||||
browser = mkBind "No browser is enabled";
|
||||
terminal = mkBind "No terminal is enabled";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.browser = {
|
||||
firefox.enable = mkEnableOption "";
|
||||
brave.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.communication = {
|
||||
discord.enable = mkEnableOption "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.creative = {
|
||||
inkscape.enable = mkEnableOption "";
|
||||
audacity.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.fileManager = {
|
||||
nemo.enable = mkEnableOption "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.gaming = {
|
||||
factorio.enable = mkEnableOption "";
|
||||
bottles.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.media = {
|
||||
image = {
|
||||
imv.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.productivity = {
|
||||
notes = {
|
||||
obsidian.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption types;
|
||||
inherit (types) nullOr enum;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.security.polkit = mkOption {
|
||||
type = nullOr (enum ["gnome" "pantheon"]); # TODO: add kde agent
|
||||
default = "gnome";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.terminal = {
|
||||
foot.enable = mkEnableOption "";
|
||||
kitty.enable = mkEnableOption "";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.tools = {
|
||||
kdeconnect.enable = mkEnableOption "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,30 +1,26 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption mkEnableOption types;
|
||||
inherit (types) nullOr enum;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.wayland = {
|
||||
enable = mkEnableOption "";
|
||||
compositor = mkOption {
|
||||
type = nullOr (enum [ "hyprland" ]);
|
||||
type = nullOr (enum ["hyprland"]);
|
||||
};
|
||||
launcher = mkOption {
|
||||
type = nullOr (enum [ "rofi" "tofi" ]);
|
||||
type = nullOr (enum ["rofi" "tofi"]);
|
||||
default = null;
|
||||
};
|
||||
locker = mkOption {
|
||||
type = nullOr (enum [ "hyprlock" "swaylock" ]);
|
||||
type = nullOr (enum ["hyprlock" "swaylock"]);
|
||||
default = null;
|
||||
};
|
||||
notification = mkOption {
|
||||
type = nullOr (enum [ "mako" ]);
|
||||
type = nullOr (enum ["mako"]);
|
||||
default = null;
|
||||
};
|
||||
bar = mkOption {
|
||||
type = nullOr (enum [ "waybar" ]);
|
||||
type = nullOr (enum ["waybar"]);
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption types;
|
||||
inherit (types) nullOr enum;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.console = {
|
||||
editor = mkOption {
|
||||
type = nullOr (enum ["helix" "nvim"]);
|
||||
|
|
|
|||
|
|
@ -1,51 +1,46 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption types;
|
||||
inherit (types) enum nullOr listOf;
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
options.ooknet.desktop = {
|
||||
|
||||
environment = mkOption {
|
||||
type = nullOr (enum [ "hyprland" ]);
|
||||
type = nullOr (enum ["hyprland"]);
|
||||
default = "hyprland";
|
||||
};
|
||||
|
||||
browser = mkOption {
|
||||
type = nullOr (enum [ "firefox" "brave" ]);
|
||||
type = nullOr (enum ["firefox" "brave"]);
|
||||
default = null;
|
||||
};
|
||||
|
||||
terminal = mkOption {
|
||||
type = nullOr (enum [ "foot" "kitty" "wezterm" ]);
|
||||
type = nullOr (enum ["foot" "kitty" "wezterm"]);
|
||||
default = "foot";
|
||||
};
|
||||
|
||||
fileManager = mkOption {
|
||||
type = nullOr (enum [ "nemo" ]);
|
||||
type = nullOr (enum ["nemo"]);
|
||||
default = null;
|
||||
};
|
||||
|
||||
notes = mkOption {
|
||||
type = nullOr (enum [ "obsidian" ]);
|
||||
type = nullOr (enum ["obsidian"]);
|
||||
default = null;
|
||||
};
|
||||
|
||||
pdf = mkOption {
|
||||
type = nullOr (enum [ "zathura" ]);
|
||||
type = nullOr (enum ["zathura"]);
|
||||
default = null;
|
||||
};
|
||||
|
||||
discord = mkOption {
|
||||
type = nullOr (enum [ "vesktop" ]);
|
||||
type = nullOr (enum ["vesktop"]);
|
||||
default = null;
|
||||
};
|
||||
|
||||
suites = mkOption {
|
||||
type = listOf (enum [ "gaming" "tools" "media" "creative" ]);
|
||||
default = [ ];
|
||||
type = listOf (enum ["gaming" "tools" "media" "creative"]);
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue