update git config for tulkas
This commit is contained in:
parent
1c14aee742
commit
bca8e8c03c
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue