configure git for work
Some checks failed
use nix / build (push) Failing after 4m12s

This commit is contained in:
Cyryl Płotnicki 2024-10-02 14:13:34 +01:00
parent e3606cfaaf
commit 530f4023fc
3 changed files with 12 additions and 4 deletions

View file

@ -7,7 +7,7 @@
... ...
}: { }: {
imports = [ imports = [
(import ../../git { inherit pkgs; inherit lib; inherit config; cyplo.username = "Cyryl.Plotnicki"; })
]; ];
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
@ -64,6 +64,7 @@
home.sessionPath = ["$HOME/bin"]; home.sessionPath = ["$HOME/bin"];
home.packages = with pkgs; []; home.packages = with pkgs; [];
programs = { programs = {
git.userEmail = "cyryl.plotnicki@cushon.co.uk";
}; };
}; };
} }

View file

@ -2,7 +2,13 @@
config, config,
pkgs, pkgs,
lib, lib,
cyplo,
... ...
}: { }:
home-manager.users.cyryl = {...}: {imports = [./home.nix];}; let
username = if cyplo ? username then "${cyplo.username}" else "cyryl";
in
{
home-manager.users."${username}" = {...}: {imports = [./home.nix];};
} }

View file

@ -2,13 +2,14 @@
config, config,
pkgs, pkgs,
inputs, inputs,
lib,
... ...
}: { }: {
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
userName = "Cyryl Płotnicki"; userName = "Cyryl Płotnicki";
userEmail = "cyplo@cyplo.dev"; userEmail = lib.mkDefault "cyplo@cyplo.dev";
delta = { delta = {
enable = true; enable = true;
options = { options = {