nix/home.nix

26 lines
534 B
Nix
Raw Normal View History

2023-09-05 21:46:55 -05:00
inputs:
2023-10-03 11:23:30 -05:00
let
mkHome = system: modules:
2023-09-14 21:20:27 -05:00
let
2023-10-03 11:23:30 -05:00
overlay = final: prev: {
helix = prev.helix // inputs.helix.packages.${system}.helix;
};
pkgs = import inputs.nixpkgs { inherit system; overlays = [ overlay ]; };
2023-09-14 21:20:27 -05:00
in
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-10-03 11:23:30 -05:00
modules = [ ] ++ modules;
2023-09-14 21:20:27 -05:00
};
2023-10-03 11:23:30 -05:00
in
{
daniel = mkHome "x86_64-linux" [
./home/user.nix
./home/linux.nix
];
2023-09-14 10:04:07 -05:00
2023-10-03 11:23:30 -05:00
daniel-work = mkHome "aarch64-darwin" [
./home/user.nix
./home/work.nix
];
2023-09-05 21:46:55 -05:00
}