nix-home/home/common.nix

134 lines
2.2 KiB
Nix
Raw Normal View History

2021-10-29 17:31:16 +00:00
{ config, pkgs, lib, ... }:
2021-09-29 16:38:27 +00:00
{
2021-10-30 16:10:54 +00:00
imports = [
./kakoune/kak.nix
./fish/fish.nix
2022-01-11 19:44:00 +00:00
./modules/programs/my-broot.nix
2022-04-20 17:05:02 +00:00
./modules/programs/my-sway
./common-linux.nix
2021-10-30 16:10:54 +00:00
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Enable the manual so we don't have to load it
manual.html.enable = true;
# Packages that are not in programs section
home.packages = with pkgs; [
# Build Tools
## C++
autoconf
automake
## SQL
flyway
## Go
go # to be configured later
## Rust
rust-analyzer
## JavaScript
yarn
## Nix
cachix
rnix-lsp
2021-11-08 21:21:00 +00:00
## Latex
tectonic
2021-11-08 22:16:37 +00:00
texlab
## Python
python310
2021-10-30 16:10:54 +00:00
# Fonts
fantasque-sans-mono
## Enable the FSM font with NF variant
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# CLI tools
fd
2021-11-07 18:53:05 +00:00
ripgrep
2021-10-30 16:10:54 +00:00
fossil
## Blog generator
hugo
## File Manager
nnn
## PDF Processors
poppler_utils
## htop replacement
bottom
## To do tunneling with cloudflare
2022-04-19 21:44:08 +00:00
pkgs.unfree.cloudflared
2021-10-30 16:10:54 +00:00
# Databases
postgresql
];
home.sessionVariables = {
# Bat theme
BAT_THEME = "GitHub";
# Editor
EDITOR = "kak";
};
2021-10-30 16:10:54 +00:00
home.sessionPath = [
# Sometimes we want to install custom scripts here
"~/.local/bin"
];
# Programs
programs = {
bat = {
enable = true;
config = {
theme = "GitHub";
};
2021-10-09 02:52:28 +00:00
};
2022-01-11 19:44:00 +00:00
my-broot.enable = true;
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
direnv.enable = true;
direnv.nix-direnv.enable = true;
2021-10-20 01:11:07 +00:00
2021-10-30 16:10:54 +00:00
exa = {
enable = true;
enableAliases = true;
};
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
# later
firefox = { };
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
fzf = {
enable = true;
enableFishIntegration = true;
};
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
gh = {
enable = true;
2021-12-01 18:52:13 +00:00
settings.git_protocol = "ssh";
};
2021-10-30 16:10:54 +00:00
git = {
enable = true;
delta = {
enable = true;
options = {
line-numbers = true;
2021-10-09 02:52:28 +00:00
};
2021-10-30 16:10:54 +00:00
};
signing.key = null;
signing.signByDefault = true;
userEmail = "nki@nkagami.me";
userName = "Natsu Kagami";
extraConfig = {
init.defaultBranch = "master";
};
};
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
gpg.enable = true;
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
jq.enable = true;
2021-09-29 16:38:27 +00:00
2021-10-30 16:10:54 +00:00
nushell.enable = true;
};
2021-09-29 16:38:27 +00:00
}