move zoxide to hosts/common

This commit is contained in:
jacekpoz 2024-10-02 17:34:54 +02:00
parent 1f9231aab3
commit 8f0422458c
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
8 changed files with 14 additions and 27 deletions

View file

@ -7,5 +7,6 @@ _: {
./malloc-perturb.nix
./noisetorch.nix
./starship.nix
./zoxide.nix
];
}

View file

@ -0,0 +1,13 @@
{
config,
...
}: let
inherit (config.poz.other.system) username;
in {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
enableZshIntegration = config.poz.programs.zsh.enable;
};
};
}

View file

@ -119,7 +119,6 @@ in {
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;

View file

@ -34,7 +34,6 @@
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
btop.enable = true;
foot.enable = true;

View file

@ -75,7 +75,6 @@ in {
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
vesktop.enable = true;
btop.enable = true;

View file

@ -73,7 +73,6 @@ in {
};
profiling = false;
};
zoxide.enable = true;
anyrun.enable = true;
btop.enable = true;
foot.enable = true;

View file

@ -2,7 +2,6 @@ _: {
imports = [
./git.nix
./nh.nix
./zoxide.nix
./zsh.nix
];
}

View file

@ -1,22 +0,0 @@
{
config,
lib,
...
}: let
cfg = config.poz.programs.zoxide;
inherit (config.poz.other.system) username;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.poz.programs.zoxide.enable = mkEnableOption "zoxide";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.zoxide = {
enable = true;
enableZshIntegration = config.poz.programs.zsh.enable;
};
};
};
}