-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
110 lines (96 loc) · 2.78 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
# ██
# ██ ██████ ██
# ██ ██ ██
# ██ ██ ██ ██ ██
# ██ ██ ██
# ██ ██████ ██
# ██████████████████████████
# ██ ██████ ██
# ██ ██ ██
# ██ ██ ██ ██ ██
# ██ ██ ██
# ██ ██████ ██
# ██
{
description = "PrimaMateria's NixOS configuration";
outputs = {
self,
hive,
std,
...
} @ inputs:
hive.growOn
{
inherit inputs;
nixpkgsConfig.allowUnfree = true;
cellsFrom = ./cells;
cellBlocks = with std.blockTypes;
with hive.blockTypes; [
(functions "bees")
(functions "devices")
(functions "system")
(functions "machines")
(functions "installations")
(functions "cli")
(functions "environments")
(functions "desktop")
(functions "secrets")
(functions "dockerServices")
nixosConfigurations
homeConfigurations
];
}
{
# sudo nixos-rebuild switch --flake .#primamateria-gg
# sudo nixos-rebuild dry-activate --flake .#primamateria-mentat --show-trace --option eval-cache false
nixosConfigurations = hive.collect self "nixosConfigurations";
# nix build .#homeConfigurations.primamateria-gg.activationPackage
# ./result/activate
homeConfigurations = hive.collect self "homeConfigurations";
};
nixConfig = {
extra-experimental-features = ["nix-command" "flakes"];
allowUnfree = true;
};
# Hive inputs
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/23.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/master";
nixpkgs.follows = "nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
};
std = {
url = "github:divnix/std";
inputs.nixpkgs.follows = "nixpkgs";
};
hive = {
url = "github:divnix/hive";
inputs.nixpkgs.follows = "nixpkgs";
};
haumea = {
url = "github:nix-community/haumea";
inputs.nixpkgs.follows = "nixpkgs";
};
};
# My inputs
inputs = {
dmenu-primamateria = {
url = "github:PrimaMateria/dmenu";
inputs.nixpkgs.follows = "nixpkgs";
};
i3blocks-gcalcli = {
url = "github:PrimaMateria/i3blocks-gcalcli";
inputs.nixpkgs.follows = "nixpkgs";
};
i3blocks-contrib = {
url = "github:vivien/i3blocks-contrib";
flake = false;
};
};
}