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