refactor(treewide)
This commit is contained in:
parent
25d48ac2ac
commit
c4fc882042
99 changed files with 634 additions and 477 deletions
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ in
|
|||
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
fzf = {
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableFishIntegration = mkIf (admin.shell == "fish") true;
|
||||
defaultCommand = "rg --files --hidden";
|
||||
|
|
|
|||
|
|
@ -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; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue