nix/modules/home-manager/common.nix

108 lines
2.1 KiB
Nix
Raw Normal View History

2023-10-05 13:43:28 -05:00
{
pkgs,
lib,
system,
inputs,
outputs,
...
}: {
# TODO: fonts? right now they are only handled at the nixos-level (desktop-usage module)
# TODO: wallpaper?
imports = with outputs.homeManagerModules; [
2023-10-05 13:43:28 -05:00
# nix-colors.homeManagerModules.default
fish
2023-11-07 21:30:26 -06:00
bat
helix
git
iex
zellij
broot
2023-11-21 18:27:53 -06:00
nnn
2023-11-29 21:27:15 -06:00
htop
cargo
2023-11-07 21:30:26 -06:00
senpai
2023-11-01 11:07:55 -05:00
tmux
2023-10-05 13:43:28 -05:00
];
# TODO: specify an email?
# accounts.email.accounts = {
# primary = {
# address = "daniel@lyte.dev";
# };
# };
home = {
username = lib.mkDefault "daniel";
homeDirectory = lib.mkDefault "/home/daniel/.home";
stateVersion = lib.mkDefault "23.11";
2023-10-06 01:34:46 -05:00
sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
PAGER = "less";
MANPAGER = "less";
};
2023-10-05 13:43:28 -05:00
packages = [
# I use gawk for my fish prompt
pkgs.gawk
# text editor
inputs.helix.packages.${system}.helix
# tools I use when editing nix code
pkgs.nil
pkgs.alejandra
(pkgs.buildEnv {
name = "my-scripts-common";
paths = [./scripts/common];
})
];
};
programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [exts.pass-otp]);
};
programs.gitui = {
enable = true;
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.eza = {
enable = true;
2023-10-18 09:14:19 -05:00
package = inputs.nixpkgs.legacyPackages.${system}.eza;
2023-10-05 13:43:28 -05:00
};
programs.skim = {
2023-11-09 15:41:27 -06:00
# https://github.com/lotabout/skim/issues/494
enable = false;
enableFishIntegration = true;
defaultOptions = ["--no-clear-start" "--color=16"];
};
programs.fzf = {
# using good ol' fzf until skim sucks less out of the box I guess
2023-10-05 13:43:28 -05:00
enable = true;
enableFishIntegration = true;
2023-11-09 16:55:01 -06:00
# defaultCommand = "fd --type f";
# defaultOptions = ["--height 40%"];
# fileWidgetOptions = ["--preview 'head {}'"];
2023-10-05 13:43:28 -05:00
};
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
# maybe we can share somehow so things for nix-y systems and non-nix-y systems alike
# am I going to _have_ non-nix systems anymore?
}