refactor(treewide)

This commit is contained in:
ooks-io 2024-06-11 22:37:17 +12:00
parent 25d48ac2ac
commit c4fc882042
99 changed files with 634 additions and 477 deletions

View file

@ -1,10 +1,8 @@
{
imports = [
./editor # Still need to implement nvim
./fileManager
./multiplexer # Still need to implement tmux and screen
./prompt # only Starship is currently implemented
./shell
./utility
./tools
];
}

View file

@ -1,27 +1,6 @@
{ lib, ... }:
{
imports = [
./helix
# ./nvim
];
options.ooknet.console.editor = {
helix = {
enable = lib.mkEnableOption "Enable helix text editor";
default = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Set helix as the default text editor in environment variables";
};
};
nvim = {
enable = lib.mkEnableOption "Enable nvim text editor";
default = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Set nvim as the default text editor in environment variables";
};
};
};
}

View file

@ -1,17 +1,7 @@
{ lib, config, ... }:
{
imports = [
./zellij
#./screen
./tmux
];
options.ooknet.console.multiplexer = {
zellij = {
enable = lib.mkEnableOption "Enable zellij multiplexer";
};
tmux = {
enable = lib.mkEnableOption "Enable tmux multiplexer";
};
};
}

View file

@ -8,7 +8,7 @@ in
{
config = mkIf cfg.enable {
fzf = {
programs.fzf = {
enable = true;
enableFishIntegration = mkIf (admin.shell == "fish") true;
defaultCommand = "rg --files --hidden";

View file

@ -1,7 +1,9 @@
{ pkgs, lib, config, ... }:
let
cfg = config.ooknet.console.utility.tools;
cfg = config.ooknet.tools.utils;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [