.
This commit is contained in:
@@ -19,13 +19,15 @@
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
username = "krosh"; # TODO: make it universal
|
||||
username = "krosh";
|
||||
gitName = "Dmitrii Gudov";
|
||||
gitEmail = "gudovdo@my.msu.ru";
|
||||
in {
|
||||
homeConfigurations.${username} =
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [ ./home.nix ];
|
||||
extraSpecialArgs = { inherit inputs username; };
|
||||
extraSpecialArgs = { inherit inputs username gitName gitEmail; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, gitName, gitEmail, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
@@ -7,8 +7,8 @@
|
||||
settings = {
|
||||
pull.rebase = true;
|
||||
user = {
|
||||
email = "gudovdo@my.msu.ru";
|
||||
name = "Dmitrii Gudov";
|
||||
name = gitName;
|
||||
email = gitEmail;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user