refactor(home): homeModules -> ooknet

This commit is contained in:
ooks-io 2024-05-30 22:02:18 +12:00
parent b81c929a0b
commit 1d1cb3092f
104 changed files with 214 additions and 255 deletions

View file

@ -7,7 +7,7 @@
./ssh
];
options.homeModules.console.utility = {
options.ooknet.console.utility = {
nixIndex = {
enable = lib.mkEnableOption "Enable nixIndex configuration";
};

View file

@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }:
let
cfg = config.homeModules.console.utility.git;
cfg = config.ooknet.console.utility.git;
in
{
config = lib.mkIf cfg.enable {

View file

@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }:
let
cfg = config.homeModules.console.utility.nixIndex;
cfg = config.ooknet.console.utility.nixIndex;
update-script = pkgs.writeShellApplication {
name = "fetch-nix-index-database";
runtimeInputs = with pkgs; [ wget coreutils ];

View file

@ -1,8 +1,8 @@
{ lib, config, ... }:
let
cfg = config.homeModules.console.utility.ssh;
hasFish = mkIf config.homeModules.console.shell.fish.enable;
cfg = config.ooknet.console.utility.ssh;
hasFish = mkIf config.ooknet.console.shell.fish.enable;
inherit (lib) mkIf;
in
@ -16,9 +16,8 @@ in
IdentityAgent "~/.1password/agent.sock"
'';
};
programs.fish.interactiveShellInit = hasFish ''
programs.fish.interactiveShellInit = hasFish /* fish */ ''
set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
'';
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }:
let
cfg = config.homeModules.console.utility.tools;
cfg = config.ooknet.console.utility.tools;
in
{
config = lib.mkIf cfg.enable {
@ -61,7 +61,7 @@ in
};
fzf = {
enable = true;
enableFishIntegration = lib.mkIf config.homeModules.console.shell.fish.enable true;
enableFishIntegration = lib.mkIf config.ooknet.console.shell.fish.enable true;
defaultCommand = "rg --files --hidden";
changeDirWidgetOptions = [
"--preview 'eza --icons -L 3 -T --color always {} | head -200'"