This commit is contained in:
Zynh Ludwig 2024-05-29 23:34:10 -07:00
parent ab1f001742
commit 5990c5d258
5 changed files with 21 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.alacritty;
in

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
imports = [
./neovim.nix

View file

@ -1,4 +1,5 @@
{ pkgs, inputs, config, lib, ... }:
let
cfg = config.snowhawk.fish;
in
@ -6,6 +7,7 @@ in
options.snowhawk.fish = {
enable = lib.mkEnableOption "fish";
};
config = lib.mkIf cfg.enable {
programs.bash = {
enable = true;

View file

@ -1,4 +1,5 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.git;
in
@ -6,14 +7,17 @@ in
options.snowhawk.git = {
enable = lib.mkEnableOption "git";
};
config = lib.mkIf cfg.enable {
programs.git = {
enable = true;
userName = "Zynh Ludwig";
userEmail = "zynh0722@gmail.com";
ignores = [
"Session.vim"
];
aliases = {
co = "checkout";
ci = "commit";
@ -24,18 +28,22 @@ in
dump = "cat-file -p";
graph = "log --graph --decorate --pretty=oneline --abbrev-commit";
};
extraConfig = {
init.defaultBranch = "main";
core = {
editor = "nvim";
autocrlf = "input";
safecrlf = true;
};
credential = {
helper = [
"cache --timeout 7200"
"oauth"
];
"https://git.zynh.me" = {
oauthClientId = "13d5b95d-565d-4264-8961-c45cc38eaa8a";
oauthScopes = "read_repository write_repository";

View file

@ -1,10 +1,12 @@
{ pkgs, lib, config, ... }:
let
cfg = config.snowhawk.neovim;
in
{
options.snowhawk.neovim = {
enable = lib.mkEnableOption "neovim";
package = lib.mkPackageOption pkgs "neovim" {
default = [ "neovim-unwrapped" ];
};
@ -33,6 +35,11 @@ in
enable = true;
coc.enable = false;
package = cfg.package;
withNodeJs = true;
withPython3 = true;
withRuby = true;
# TODO: nvim config nix import
extraLuaConfig = ''
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
@ -41,18 +48,17 @@ in
vim.opt.runtimepath:append ("${treesitter-parsers}")
'';
plugins = [
treesitterWithGrammars
];
extraPackages = with pkgs; [
nil
nixpkgs-fmt
rustup
lua-language-server
];
withNodeJs = true;
withPython3 = true;
withRuby = true;
};
};
}