From 2f7fbccd0f7bfe1ac317aed6a462f2fb244905b7 Mon Sep 17 00:00:00 2001 From: blahai Date: Fri, 13 Dec 2024 16:54:34 +0200 Subject: [PATCH] Nyx: add git config --- hosts/nyx/home.nix | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/hosts/nyx/home.nix b/hosts/nyx/home.nix index 39e438b..9f412b7 100644 --- a/hosts/nyx/home.nix +++ b/hosts/nyx/home.nix @@ -1,5 +1,4 @@ -{ inputs, config, pkgs, lib, ... }: -{ +{ inputs, config, pkgs, lib, ... }: { imports = [ ../../modules/home-manager/default.nix inputs.catppuccin.homeManagerModules.catppuccin @@ -8,6 +7,28 @@ home.username = "pingu"; home.homeDirectory = "/home/pingu"; + programs.git = { + enable = true; + lfs.enable = true; + userName = "blahai"; + userEmail = "github@blahai.gay"; + diff-so-fancy.enable = true; + signing = { + signByDefault = true; + key = "/home/pingu/.ssh/id_ed25519"; + }; + extraConfig = { + core = { + editor = "nvim"; + autocrlf = "input"; + }; + gpg = { + format = "ssh"; + }; + init = { defaultBranch = "main"; }; + }; + }; + gtk = { enable = true; catppuccin = { @@ -26,15 +47,11 @@ size = 24; }; - home.stateVersion = "24.05"; + home.stateVersion = "24.11"; - home.packages = with pkgs; [ - obsidian - ]; + home.packages = with pkgs; [ obsidian ]; - home.sessionVariables = { - EDITOR = "nvim"; - }; + home.sessionVariables = { EDITOR = "nvim"; }; # Let Home Manager install and manage itself. programs.home-manager.enable = true;