From e5d71b6715c59902819c62c907f79b684ad51e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 7 Oct 2024 22:21:50 +0200 Subject: [PATCH] Add git config to home manager --- home/gunter.nix | 17 +++++++++-------- home/programs/git/default.nix | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 home/programs/git/default.nix diff --git a/home/gunter.nix b/home/gunter.nix index a2f1b6f..c694ec8 100644 --- a/home/gunter.nix +++ b/home/gunter.nix @@ -17,22 +17,23 @@ { imports = [ inputs.sops-nix.homeManagerModules.sops - ./sops ./editor/neovim - ./programs/firefox - ./programs/tmux + ./hyprland/gunter.nix + ./packages ./programs/dunst + ./programs/git + ./programs/firefox ./programs/kitty - ./programs/rofi ./programs/obs-studio + ./programs/rofi + ./programs/tmux ./programs/vscode ./scripts - ./zsh - ./packages - ./hyprland/gunter.nix - ./ssh ./services/backup-home.nix ./services/ghettoptt.nix + ./sops + ./ssh + ./zsh ]; firefox.enable = true; tmux.enable = true; diff --git a/home/programs/git/default.nix b/home/programs/git/default.nix new file mode 100644 index 0000000..06ba38c --- /dev/null +++ b/home/programs/git/default.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: +{ + programs.git = { + enable = true; + userName = "Torjus HÃ¥kestad"; + userEmail = "torjus@usit.uio.no"; + + lfs.enable = true; + + signing = { + key = "~/.ssh/id_ed25519.pub"; + signByDefault = true; + }; + }; +}