update git config for tulkas

This commit is contained in:
Chris Kruining 2025-06-20 22:40:59 +02:00
parent 1c14aee742
commit bca8e8c03c
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
2 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,6 @@
{ ... }:
{ lib, ... }: let
inherit (lib) mkForce;
in
{
user = {
full_name = "Chris Kruining";
@ -26,5 +28,6 @@
shell = {
default = "zsh";
toolset.git.enable = mkForce false;
};
}

View file

@ -1,12 +1,13 @@
{ config, lib, pkgs, user, ... }:
let
inherit (lib.options) mkEnableOption;
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf;
in
{
options.modules.${user}.shell.toolset.git = let
inherit (lib.options) mkEnableOption;
in { enable = mkEnableOption "version-control system"; };
options.modules.${user}.shell.toolset.git = {
enable = mkEnableOption "version-control system";
};
config = mkIf config.modules.${user}.shell.toolset.git.enable {
environment.sessionVariables.GITHUB_TOKEN = "$(cat /run/agenix/tokenGH)";