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 = { user = {
full_name = "Chris Kruining"; full_name = "Chris Kruining";
@ -26,5 +28,6 @@
shell = { shell = {
default = "zsh"; default = "zsh";
toolset.git.enable = mkForce false;
}; };
} }

View file

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