Re-format common

This commit is contained in:
Natsu Kagami 2021-10-30 12:10:54 -04:00
parent f1099c488e
commit 74d81a4e63
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -1,126 +1,132 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = [ imports = [
./kakoune/kak.nix ./kakoune/kak.nix
./fish/fish.nix ./fish/fish.nix
]; ];
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
# Enable the manual so we don't have to load it # Enable the manual so we don't have to load it
manual.html.enable = true; manual.html.enable = true;
# Packages that are not in programs section # Packages that are not in programs section
home.packages = with pkgs; [ home.packages = with pkgs; [
# Build Tools # Build Tools
## C++ ## C++
autoconf autoconf
automake automake
## SQL ## SQL
flyway flyway
## Go ## Go
go # to be configured later go # to be configured later
## Rust ## Rust
rust-analyzer rust-analyzer
## JavaScript ## JavaScript
yarn yarn
## Nix ## Nix
cachix cachix
rnix-lsp rnix-lsp
# Fonts # Fonts
fantasque-sans-mono fantasque-sans-mono
## Enable the FSM font with NF variant ## Enable the FSM font with NF variant
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) (nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# CLI tools # CLI tools
fd fd
fossil fossil
## Blog generator ## Blog generator
hugo hugo
## File Manager ## File Manager
nnn nnn
## PDF Processors ## PDF Processors
poppler_utils poppler_utils
## htop replacement ## htop replacement
bottom bottom
## To do tunneling with cloudflare ## To do tunneling with cloudflare
cloudflared cloudflared
# Databases # Databases
postgresql postgresql
]; ];
home.sessionVariables = { home.sessionVariables = {
# Bat theme # Bat theme
BAT_THEME = "GitHub"; BAT_THEME = "GitHub";
# Editor # Editor
EDITOR = "kak"; EDITOR = "kak";
};
home.sessionPath = [
# Sometimes we want to install custom scripts here
"~/.local/bin"
];
# Programs
programs = {
bat = {
enable = true;
config = {
theme = "GitHub";
};
}; };
home.sessionPath = [ broot.enable = true;
# Sometimes we want to install custom scripts here
"~/.local/bin"
];
# Programs direnv.enable = true;
programs = { direnv.nix-direnv.enable = true;
bat = { direnv.nix-direnv.enableFlakes = true;
enable = true;
config = {
theme = "GitHub";
};
};
broot.enable = true; exa = {
enable = true;
direnv.enable = true; enableAliases = true;
direnv.nix-direnv.enable = true;
direnv.nix-direnv.enableFlakes = true;
exa = {
enable = true;
enableAliases = true;
};
# later
firefox = {};
fzf = {
enable = true;
enableFishIntegration = true;
};
gh = {
enable = true;
gitProtocol = lib.mkIf (config.home.stateVersion == "21.05") "ssh";
settings.git_protocol = lib.mkIf (config.home.stateVersion == "21.11") "ssh";
};
git = {
enable = true;
delta = {
enable = true;
options = {
line-numbers = true;
};
};
signing.key = null;
signing.signByDefault = true;
userEmail = "nki@nkagami.me";
userName = "Natsu Kagami";
extraConfig = {
init.defaultBranch = "master";
};
};
gpg.enable = true;
jq.enable = true;
nushell.enable = true;
}; };
# later
firefox = { };
fzf = {
enable = true;
enableFishIntegration = true;
};
gh = {
enable = true;
} // (
let
protocol = "ssh";
in
if (config.home.stateVersion == "21.05") then
{ gitProtocol = "ssh"; }
else
{ settings.git_protocol = protocol; }
);
git = {
enable = true;
delta = {
enable = true;
options = {
line-numbers = true;
};
};
signing.key = null;
signing.signByDefault = true;
userEmail = "nki@nkagami.me";
userName = "Natsu Kagami";
extraConfig = {
init.defaultBranch = "master";
};
};
gpg.enable = true;
jq.enable = true;
nushell.enable = true;
};
} }