This commit is contained in:
2025-12-13 18:33:07 +03:00
parent 257c6d2eed
commit c9c8cfc2a1
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -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; };
}; };
}; };
} }
+3 -3
View File
@@ -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;
}; };
}; };
}; };