added plugins to fish, not sure if all of them are working
This commit is contained in:
parent
d64ab56ca0
commit
00606b92ea
7 changed files with 47 additions and 51 deletions
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -14,8 +14,18 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs.fishPlugins; [
|
||||||
|
autopair
|
||||||
|
colored-man-pages
|
||||||
|
forgit
|
||||||
|
sponge
|
||||||
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
fish = enabled;
|
fish = {
|
||||||
|
enable = true;
|
||||||
|
shellInit = "zoxide init fish | source";
|
||||||
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -53,7 +63,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
zoxide = {
|
zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
options = [
|
||||||
|
"--cmd cd"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,17 +18,17 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "Tokyo Night";
|
theme = "Tokyo Night";
|
||||||
font = {
|
font = {
|
||||||
name = "Code New Roman";
|
name = "Code New Roman";
|
||||||
size = 15;
|
size = 15;
|
||||||
|
};
|
||||||
|
shellIntegration.enableFishIntegration = true;
|
||||||
|
settings = {
|
||||||
|
"background_opacity" = "0.9";
|
||||||
|
"shell" = "fish";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
shellIntegration.enableFishIntegration = true;
|
|
||||||
settings = {
|
|
||||||
"background_opacity" = "0.9";
|
|
||||||
"shell" = "fish";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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; {
|
options.wyrdgard.tools.direnv = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
let
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
inherit (lib) types mkEnableOption mkIf;
|
inherit (lib) types mkEnableOption mkIf;
|
||||||
inherit (lib.wyrdgard) mkOpt enabled;
|
inherit (lib.wyrdgard) mkOpt enabled;
|
||||||
|
|
||||||
cfg = config.wyrdgard.tools.git;
|
cfg = config.wyrdgard.tools.git;
|
||||||
user = config.wyrdgard.user;
|
user = config.wyrdgard.user;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.wyrdgard.tools.git = {
|
options.wyrdgard.tools.git = {
|
||||||
enable = mkEnableOption "Git";
|
enable = mkEnableOption "Git";
|
||||||
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
||||||
|
@ -20,8 +22,8 @@ in
|
||||||
inherit (cfg) userName userEmail;
|
inherit (cfg) userName userEmail;
|
||||||
lfs = enabled;
|
lfs = enabled;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init = { defaultBranch = "main"; };
|
init = {defaultBranch = "main";};
|
||||||
push = { autoSetupRemote = true; };
|
push = {autoSetupRemote = true;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,6 +20,7 @@ in {
|
||||||
fd
|
fd
|
||||||
tree
|
tree
|
||||||
ripgrep
|
ripgrep
|
||||||
|
fzf
|
||||||
];
|
];
|
||||||
|
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
|
|
|
@ -72,7 +72,7 @@ in {
|
||||||
}".source =
|
}".source =
|
||||||
cfg.icon;
|
cfg.icon;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.name} =
|
users.users.${cfg.name} =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue