-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
115 lines (106 loc) · 3.75 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
description = "Config";
inputs = {
agenix.url = "github:yaxitech/ragenix";
colmena.inputs.nixpkgs.follows = "nixpkgs";
colmena.inputs.stable.follows = "std/blank";
colmena.url = "github:zhaofengli/colmena";
darwin.inputs.nixpkgs.follows = "nixos";
darwin.url = "github:LnL7/nix-darwin";
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
firefox-nightly.url = "github:nix-community/flake-firefox-nightly";
hive.inputs.colmena.follows = "colmena";
hive.inputs.nixpkgs.follows = "nixpkgs";
hive.url = "github:divnix/hive";
home.url = "github:nix-community/home-manager";
lihim.url = "git+file:///home/kranium/git/github.com/womfoo/lihim";
nixago.inputs.nixago-exts.follows = "";
nixago.inputs.nixpkgs.follows = "nixpkgs";
nixago.url = "github:nix-community/nixago";
# nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-24-05.url = "github:NixOS/nixpkgs/nixos-24.05";
nixos-22-11.url = "github:NixOS/nixpkgs/nixos-23.11";
nixos.follows = "nixpkgs";
nixos-hardware = {
# url = "github:NixOS/nixos-hardware";
url = "git+file:///home/kranium/git/github.com/womfoo/nixos-hardware"; # patch bee.pkgs.overlays for now
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/18536bf04cd71abd345f9579158841376fdd0c5a";
# nixpkgs.url = "git+file:///home/kranium/git/github.com/womfoo/nixpkgs";
nur = {
url = "github:nix-community/NUR";
};
srvos.url = "github:nix-community/srvos";
std.inputs.devshell.follows = "devshell";
std.inputs.nixago.follows = "nixago";
std.inputs.nixpkgs.follows = "nixpkgs";
std.url = "github:divnix/std/v0.33.3";
# terranix.url = "github:terranix/terranix";
# terranix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
std,
hive,
self,
...
}@inputs:
let
myCollect = hive.collect // {
renamer = _cell: target: "${target}";
};
in
hive.growOn
{
inherit inputs;
nixpkgsConfig = {
allowUnfree = true;
};
cellsFrom = ./nix;
cellBlocks =
with std.blockTypes;
with hive.blockTypes;
[
(std.blockTypes.terra "terra" inputs.lihim.x86_64-linux.lihim.constants.tfstate_repo)
(std.blockTypes.installables "packages")
(functions "overlays")
(functions "secrets")
# modules implement
(functions "nixosModules")
(functions "homeModules")
(functions "devshellModules")
# profiles activate
(functions "hardwareProfiles")
(functions "nixosProfiles")
(functions "homeProfiles")
(functions "devshellProfiles")
# suites aggregate profiles
(functions "nixosSuites")
(functions "homeSuites")
# configurations can be deployed
darwinConfigurations
nixosConfigurations
colmenaConfigurations
(devshells "shells")
];
}
{
colmenaHive = myCollect self "colmenaConfigurations";
nixosConfigurations = myCollect self "nixosConfigurations";
darwinConfigurations = myCollect self "darwinConfigurations";
devShells = inputs.std.harvest inputs.self [
"repo"
"shells"
];
packages = inputs.std.harvest inputs.self [ "vendor" "packages" ];
}
{
packages.aarch64-linux.sd-image-dreadfort = self.nixosConfigurations.dreadfort.config.system.build.sdImage;
};
}