-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
69 lines (64 loc) · 1.71 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
{
description = "Home Manager configuration";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nixpkgs.url = "github:NixOS/nixpkgs/master";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util.url = "github:hraban/mac-app-util";
nixago = {
url = "github:nix-community/nixago";
inputs.nixpkgs.follows = "nixpkgs";
};
std = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:divnix/std";
inputs.devshell.follows = "devshell";
inputs.nixago.follows = "nixago";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
std,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./cells;
cellBlocks = with std.blockTypes; [
(devshells "devshells")
(data "users")
(functions "configurations")
(functions "packages")
(functions "programs")
(functions "home")
(nixago "configs")
];
nixpkgsConfig = {
# Nixpkgs configuration applied to inputs.nixpkgs
allowUnfree = true;
allowUnfreePredicate = _: true;
allowUnsupportedSystem = true;
};
}
{
devShells = std.harvest self ["_automation" "devshells"];
homeConfigurations =
(std.pick self ["homemanager" "configurations"]).default;
};
}