-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
135 lines (121 loc) · 3.26 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
description = "Firesquare servers configs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nur.url = "github:nix-community/NUR";
pkgs-overlay = {
url = "git+https://git.frsqr.xyz/firesquare/nur?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-22.05";
inputs.nixpkgs.follows = "nixpkgs";
};
bps = {
url = "github:DomesticMoth/bps";
inputs.nixpkgs.follows = "nixpkgs";
};
mineflake = {
url = "git+https://git.frsqr.xyz/firesquare/mineflake?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
tg-captcha = {
url = "git+https://git.frsqr.xyz/cofob/captcha?ref=main";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
erk-archive = {
url = "git+https://git.frsqr.xyz/cofob/erk-archive?ref=main";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
flake-utils.follows = "flake-utils";
};
};
firesquare-ru = {
url = "git+https://git.frsqr.xyz/firesquare/frontend?ref=main";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
cofob-ru = {
url = "git+https://git.frsqr.xyz/cofob/cofob.ru?ref=main";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
alex-home = {
url = "git+https://git.frsqr.xyz/averyanalex/nixos?ref=main";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-unstable.follows = "nixpkgs-unstable";
flake-utils.follows = "flake-utils";
nur.follows = "nur";
home-manager.follows = "home-manager";
agenix.follows = "agenix";
};
};
cofob-home = {
url = "git+https://git.frsqr.xyz/cofob/nixos";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
nur.follows = "nur";
home-manager.follows = "home-manager";
agenix.follows = "agenix";
};
};
};
outputs =
{ self
, nixpkgs
, nixpkgs-unstable
, flake-utils
, nur
, pkgs-overlay
, agenix
, home-manager
, bps
, mineflake
, tg-captcha
, erk-archive
, cofob-ru
, firesquare-ru
, alex-home
, cofob-home
}@attrs:
{
nixosConfigurations =
builtins.mapAttrs
(key: value: (
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [
./machines/${key}
];
}
))
(builtins.readDir ./machines);
} // flake-utils.lib.eachSystem (with flake-utils.lib.system; [ x86_64-linux i686-linux aarch64-linux ])
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
agenix.defaultPackage.${system}
pkgs.nebula
];
};
});
}