mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
pass flake-parts config to hm
This commit is contained in:
parent
3fc619bae1
commit
19313e9ee8
3 changed files with 8 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue