mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
local drivers
This commit is contained in:
1 parent
7e965fe195
commit
a71d522e5a
76 files changed
+37344
-18
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
commonModules.common-git =
|
||||
{ pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
base = ''
|
||||
[user]
|
||||
@@ -19,7 +19,14 @@
|
||||
helper = osxkeychain
|
||||
'';
|
||||
|
||||
gitconfig = pkgs.writeText "gitconfig" (base + lib.optionalString pkgs.stdenv.isDarwin darwinExtra);
|
||||
linuxExtra = ''
|
||||
[credential]
|
||||
helper = ${pkgs.gitFull}/bin/git-credential-libsecret
|
||||
'';
|
||||
|
||||
gitconfig = pkgs.writeText "gitconfig" (
|
||||
base + (if pkgs.stdenv.isDarwin then darwinExtra else linuxExtra)
|
||||
);
|
||||
in
|
||||
{
|
||||
environment.variables.GIT_CONFIG_SYSTEM = "${gitconfig}";
|
||||
|
||||
Reference in new issue
Block a user