clean up default home options, add lsd
This commit is contained in:
parent
a58f16e18b
commit
992f77e656
3 changed files with 79 additions and 67 deletions
|
@ -23,82 +23,85 @@ in
|
||||||
description = "set the ghostty shader, relative to 'files/ghostty'";
|
description = "set the ghostty shader, relative to 'files/ghostty'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config.programs = {
|
config = {
|
||||||
home-manager.enable = true;
|
home.shell = {
|
||||||
nix-index.enable = true;
|
enableShellIntegration = true;
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
home-manager.enable = true;
|
||||||
|
nix-index.enable = true;
|
||||||
|
|
||||||
direnv = {
|
direnv = {
|
||||||
enableZshIntegration = true;
|
nix-direnv.enable = config.programs.direnv.enable;
|
||||||
nix-direnv.enable = config.programs.direnv.enable;
|
};
|
||||||
};
|
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = lib.mkDefault user.name;
|
userName = lib.mkDefault user.name;
|
||||||
userEmail = lib.mkDefault user.email;
|
userEmail = lib.mkDefault user.email;
|
||||||
ignores = [
|
ignores = [
|
||||||
(lib.mkIf host.darwin ".DS_Store") # When using Finder
|
(lib.mkIf host.darwin ".DS_Store") # When using Finder
|
||||||
(lib.mkIf host.darwin "._*") # When using non-APFS drives
|
(lib.mkIf host.darwin "._*") # When using non-APFS drives
|
||||||
# ViM and Neovim
|
# ViM and Neovim
|
||||||
".*.swp"
|
".*.swp"
|
||||||
".nvimlog"
|
".nvimlog"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
atuin = {
|
atuin = {
|
||||||
enableBashIntegration = true;
|
daemon.enable = cfg.atuin.enable;
|
||||||
enableFishIntegration = true;
|
};
|
||||||
daemon.enable = cfg.atuin.enable;
|
|
||||||
};
|
bat = {
|
||||||
bat = {
|
extraPackages = with pkgs.bat-extras; [
|
||||||
extraPackages = with pkgs.bat-extras; [
|
batdiff
|
||||||
batdiff
|
batman
|
||||||
batman
|
batgrep
|
||||||
batgrep
|
batwatch
|
||||||
batwatch
|
batpipe
|
||||||
batpipe
|
prettybat
|
||||||
prettybat
|
];
|
||||||
];
|
};
|
||||||
};
|
hyfetch = {
|
||||||
hyfetch = {
|
settings = {
|
||||||
settings = {
|
backend = "fastfetch";
|
||||||
backend = "fastfetch";
|
preset = user.sexuality;
|
||||||
preset = user.sexuality;
|
mode = "rgb";
|
||||||
mode = "rgb";
|
light_dark = "dark";
|
||||||
light_dark = "dark";
|
lightness = {
|
||||||
lightness = {
|
};
|
||||||
};
|
color_align = {
|
||||||
color_align = {
|
mode = "horizontal";
|
||||||
mode = "horizontal";
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
fastfetch.enable = cfg.hyfetch.enable;
|
||||||
fastfetch.enable = cfg.hyfetch.enable;
|
|
||||||
|
|
||||||
fish = {
|
fish = {
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
name = "tide";
|
name = "tide";
|
||||||
inherit (pkgs.fishPlugins.tide) src;
|
inherit (pkgs.fishPlugins.tide) src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "!!";
|
||||||
|
inherit (pkgs.fishPlugins.bang-bang) src;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
shellAliases = {
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "!!";
|
|
||||||
inherit (pkgs.fishPlugins.bang-bang) src;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
shellAliases =
|
|
||||||
{ }
|
|
||||||
// lib.optionalAttrs (!host.darwin) {
|
// lib.optionalAttrs (!host.darwin) {
|
||||||
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
|
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
|
||||||
};
|
};
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
batman --export-env | source
|
batman --export-env | source
|
||||||
test -r '/Users/${user.username}/.opam/opam-init/init.fish' && source '/Users/${user.username}/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
|
test -r '/Users/${user.username}/.opam/opam-init/init.fish' && source '/Users/${user.username}/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
ghostty.settings.custom-shader = lib.mkIf (
|
ghostty.settings.custom-shader = lib.mkIf (
|
||||||
cfg.ghostty.shader != null
|
cfg.ghostty.shader != null
|
||||||
) "${../../files/ghostty}/${cfg.ghostty.shader}";
|
) "${../../files/ghostty}/${cfg.ghostty.shader}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
nss
|
nss
|
||||||
openssl
|
openssl
|
||||||
pango
|
pango
|
||||||
# pipewire
|
pipewire
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
systemd
|
systemd
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
|
@ -82,5 +82,13 @@
|
||||||
xorg.libxkbfile
|
xorg.libxkbfile
|
||||||
xorg.libxshmfence
|
xorg.libxshmfence
|
||||||
zlib
|
zlib
|
||||||
|
libxslt
|
||||||
|
|
||||||
|
# Stolen from https://github.com/Mic92/dotfiles/blob/57cf7fdf8705a5362fc19114b8395cdbf7668e94/nixos/modules/nix-ld.nix#L6-L58
|
||||||
|
flite
|
||||||
|
gtk2
|
||||||
|
gtk2-x11
|
||||||
|
libsecret
|
||||||
|
xorg.libXinerama
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
man.generateCaches = false;
|
man.generateCaches = false;
|
||||||
|
lsd.enable = true;
|
||||||
# sort-lines:end
|
# sort-lines:end
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue