-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
83 lines (75 loc) · 1.97 KB
/
flake.nix
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-21.11-darwin;
darwin = {
url = github:LnL7/nix-darwin;
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = github:nix-community/home-manager/release-21.11;
inputs.nixpkgs.follows = "nixpkgs";
};
hireup = {
url = "git+ssh://git@github.com/jamesottaway/hireup?ref=main";
};
};
outputs = { self, nixpkgs, darwin, home-manager, hireup, ... }: {
darwinConfigurations = {
b12y = darwin.lib.darwinSystem {
modules = [
./darwin/default.nix
./darwin/b12y.nix
./home/manager.nix
home-manager.darwinModule
{
home-manager.users = {
root = ./home/root.nix;
james = self.homeManagerConfigurations."james@b12y";
};
}
];
};
hireup = darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [
./darwin/default.nix
./darwin/hireup.nix
./home/manager.nix
hireup.lib.darwinConfiguration
home-manager.darwinModule
{
home-manager.users = {
root = ./home/root.nix;
jamesottaway = self.homeManagerConfigurations."jamesottaway@hireup";
};
}
];
};
};
homeManagerConfigurations = {
"james@b12y" = {
imports = [
./home/default.nix
./home/b12y.nix
./home/darwin.nix
./home/dev.nix
./home/shell.nix
];
};
"jamesottaway@hireup" = {
imports = [
./home/default.nix
./home/hireup.nix
./home/darwin.nix
./home/dev.nix
./home/shell.nix
hireup.lib.homeManagerConfiguration
];
};
};
checks.x86_64-darwin = {
b12y = self.darwinConfigurations.b12y.system;
hireup = self.darwinConfigurations.hireup.system;
};
};
}