Compare commits
2 commits
286e6d7578
...
1473a90df9
Author | SHA1 | Date | |
---|---|---|---|
|
1473a90df9 | ||
|
847bb88330 |
3 changed files with 2 additions and 85 deletions
|
@ -17,7 +17,6 @@ with lib;
|
|||
./direnv.nix
|
||||
./git.nix
|
||||
./heygpt.nix
|
||||
./hoard.nix
|
||||
./remote-install.nix
|
||||
./wtf.nix
|
||||
./zsh.nix
|
||||
|
|
|
@ -1,83 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
hoardSrc = pkgs.fetchFromGitHub {
|
||||
owner = "Hyde46";
|
||||
repo = "hoard";
|
||||
rev = "v1.3.1";
|
||||
sha256 = "sha256-Gm3X6/g5JQJEl7wRvWcO4j5XpROhtfRJ72LNaUeZRGc=";
|
||||
};
|
||||
in
|
||||
{
|
||||
options.components.terminal.hoard.enable = mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.components.terminal.enable;
|
||||
};
|
||||
|
||||
config = mkIf (config.components.terminal.hoard.enable) {
|
||||
|
||||
# todo : sync via syncthing
|
||||
#backup.dirs = [
|
||||
# "/root/.config/hoard"
|
||||
# "/home/palo/.config/hoard"
|
||||
#];
|
||||
|
||||
environment.systemPackages = [ pkgs.legacy_2211.hoard ];
|
||||
|
||||
home-manager.users.mainUser = {
|
||||
xdg.configFile."hoard/config.yml".text = builtins.toJSON {
|
||||
version = "1.0.1";
|
||||
default_namespace = "default";
|
||||
config_home_path = "/home/palo/.config/hoard";
|
||||
trove_path = "/home/palo/.config/hoard/trove.yml";
|
||||
query_prefix = " >";
|
||||
primary_color = [
|
||||
87
|
||||
142
|
||||
87
|
||||
];
|
||||
secondary_color = [
|
||||
203
|
||||
184
|
||||
144
|
||||
];
|
||||
tertiary_color = [
|
||||
30
|
||||
30
|
||||
30
|
||||
];
|
||||
command_color = [
|
||||
30
|
||||
30
|
||||
30
|
||||
];
|
||||
parameter_token = "#";
|
||||
read_from_current_directory = true;
|
||||
};
|
||||
programs.zsh.initExtra = ''
|
||||
export HOARD_NOBIND=1
|
||||
source ${hoardSrc}/src/shell/hoard.zsh
|
||||
bindkey '^x' _hoard_list_widget
|
||||
'';
|
||||
};
|
||||
|
||||
# use showkey -a
|
||||
# Ctrl-h is equivalent to Ctrl-Backspace (for some reason)
|
||||
programs.zsh.interactiveShellInit = ''
|
||||
export HOARD_NOBIND=1
|
||||
source ${hoardSrc}/src/shell/hoard.zsh
|
||||
bindkey '^x' _hoard_list_widget
|
||||
'';
|
||||
programs.bash.interactiveShellInit = ''
|
||||
export HOARD_NOBIND=1
|
||||
source ${hoardSrc}/src/shell/hoard.bash
|
||||
bind -x '"\C-x": __hoard_list'
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
|
@ -13,7 +13,8 @@ with lib;
|
|||
home.packages = [
|
||||
emoji-picker
|
||||
signal-desktop
|
||||
legacy_2311.fluffychat
|
||||
#legacy_2311.fluffychat
|
||||
#fluffychat
|
||||
];
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue