nix/home.nix

35 lines
789 B
Nix
Raw Normal View History

2023-09-05 21:46:55 -05:00
inputs:
let
overlay = system: final: prev: {
2023-09-11 10:29:12 -05:00
helix = prev.helix // inputs.helix.packages.${system}.helix;
};
# TODO: be functional - have a mkHome function?
2023-09-14 21:20:27 -05:00
in
{
daniel =
let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; overlays = [ (overlay system) ]; };
in
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
2023-10-02 11:53:39 -05:00
./home/user.nix
./home/linux.nix
2023-09-14 21:20:27 -05:00
];
};
2023-09-14 10:04:07 -05:00
2023-09-14 21:20:27 -05:00
daniel-work =
let
system = "aarch64-darwin";
pkgs = import inputs.nixpkgs { inherit system; overlays = [ (overlay system) ]; };
in
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
2023-10-02 11:53:39 -05:00
./home/user.nix
./home/work.nix
2023-09-14 21:20:27 -05:00
];
};
2023-09-05 21:46:55 -05:00
}