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

View file

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