From 6bd2426b7899aae4201f53d2c229b89cabf560be Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 26 Dec 2024 16:27:24 +0200 Subject: [PATCH] Setup credentials for git to automatically use the read-only PAT when pulling changes from this repo --- nixos/configuration.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7ebb374..8e19748 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -16,12 +16,20 @@ efiInstallAsRemovable = true; }; - environment.systemPackages = map lib.lowPrio [ - pkgs.curl - pkgs.gitMinimal - pkgs.neovim + environment.systemPackages = with pkgs; map lib.lowPrio [ + curl + gitMinimal + neovim ]; + programs.git = { + enable = true; + extraConfig = '' + [credential] + helper = store + ''; + }; + services.openssh.enable = true; services.openssh.passwordAuthentication = false;