added plugins to fish, not sure if all of them are working

This commit is contained in:
Christoph Hollizeck 2024-03-27 10:57:25 +01:00
parent d64ab56ca0
commit 00606b92ea
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
7 changed files with 47 additions and 51 deletions

View file

@ -1,24 +0,0 @@
{
lib,
pkgs,
config,
...
}:
# User information gathered by Snowfall Lib is available.
let
name = config.snowfallorg.user.name;
home = config.snowfallorg.user.home.directory;
in {
home = {
packages = with pkgs; [neovim];
sessionVariables = {EDITOR = "nvim";};
shellAliases = {
vim = "nvim";
vimdiff = "nvim -d";
};
stateVersion = "23.11";
};
}

View file

@ -14,8 +14,18 @@ in {
};
config = mkIf cfg.enable {
home.packages = with pkgs.fishPlugins; [
autopair
colored-man-pages
forgit
sponge
];
programs = {
fish = enabled;
fish = {
enable = true;
shellInit = "zoxide init fish | source";
};
starship = {
enable = true;
@ -54,6 +64,9 @@ in {
zoxide = {
enable = true;
options = [
"--cmd cd"
];
};
};
};

View file

@ -1,10 +1,14 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard;
let cfg = config.wyrdgard.tools.direnv;
in
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.tools.direnv;
in {
options.wyrdgard.tools.direnv = with types; {
enable = mkBoolOpt false "Whether or not to enable direnv.";
};

View file

@ -1,13 +1,15 @@
{ lib, config, pkgs, ... }:
let
{
lib,
config,
pkgs,
...
}: let
inherit (lib) types mkEnableOption mkIf;
inherit (lib.wyrdgard) mkOpt enabled;
cfg = config.wyrdgard.tools.git;
user = config.wyrdgard.user;
in
{
in {
options.wyrdgard.tools.git = {
enable = mkEnableOption "Git";
userName = mkOpt types.str user.fullName "The name to configure git with.";

View file

@ -20,6 +20,7 @@ in {
fd
tree
ripgrep
fzf
];
wyrdgard = {