-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
64 lines (60 loc) · 1.81 KB
/
Copy pathflake.nix
File metadata and controls
64 lines (60 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "Anntóins Home Manager Configuration";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hermes-agent = {
url = "github:NousResearch/hermes-agent";
inputs.nixpkgs.follows = "nixpkgs";
};
# Temporary: keymapper PR fork for testing 5.6.0
# Remove after PR is merged and nixos-unstable picks it up
nixpkgs-keymapper.url = "github:Anntoin/nixpkgs/update-keymapper";
};
outputs =
{
nixpkgs,
nixpkgs-keymapper,
home-manager,
hermes-agent,
...
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
keymapper = nixpkgs-keymapper.legacyPackages.${system}.keymapper;
})
];
};
# Per-host configs
hosts = import ./hosts.nix;
# Set up home-manager with the given host configuration
mkHost =
hostConfig:
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = hostConfig.modules;
extraSpecialArgs = {
inherit hostConfig;
hermesPkg = hermes-agent.packages.${system}.default;
};
};
in
{
# configuration is selected automatically based on your
# username & hostname, see `man home-manager`
homeConfigurations = {
"anntoin@manuzio" = mkHost (hosts.getHostConfig "manuzio");
"anntoin@garamond" = mkHost (hosts.getHostConfig "garamond");
"anntoin@abulafia" = mkHost (hosts.getHostConfig "abulafia");
"anntoin@pilades" = mkHost (hosts.getHostConfig "pilades");
};
};
}