pass flake-parts config to hm

This commit is contained in:
Sridhar Ratnakumar 2022-12-03 14:45:02 -05:00
parent 3fc619bae1
commit 19313e9ee8
3 changed files with 8 additions and 6 deletions

View file

@ -1,13 +1,13 @@
{ user }:
{ pkgs, config, ... }:
{ pkgs, config, flake, ... }:
{
home.packages = [ pkgs.git-lfs ];
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
userName = user.name;
userEmail = user.email;
userName = flake.config.people.users.${user}.name;
userEmail = flake.config.people.users.${user}.email;
aliases = {
co = "checkout";
ci = "commit";

View file

@ -12,6 +12,7 @@
home-manager.extraSpecialArgs = {
inherit inputs;
system = "aarch64-darwin";
flake = { inherit config; };
};
})
];
@ -35,7 +36,7 @@
self.homeModules.common-darwin
../home/shellcommon.nix
(import ../home/git.nix {
user = config.people.users.${config.people.myself};
user = config.people.myself;
})
];
};

View file

@ -15,6 +15,7 @@
home-manager.extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
flake = { inherit config; };
};
})
];
@ -26,7 +27,7 @@
imports = [
self.homeModules.common-linux
(import ../home/git.nix {
user = config.people.users.uday;
user = "uday";
})
];
};
@ -54,7 +55,7 @@
self.homeModules.common-linux
../home/shellcommon.nix
(import ../home/git.nix {
user = config.people.users.${config.people.myself};
user = config.people.myself;
})
];
};