-
Notifications
You must be signed in to change notification settings - Fork 12
/
flake.nix
136 lines (134 loc) · 4.52 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
136
{
description = "Matthew's NixOS configuration";
inputs = {
nix-super.url = "git+https://git.privatevoid.net/max/nix-super?rev=6ff67e40b495e79aa6b2dc9356f1e9ade3b77bca&shallow=1";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs2305.url = "github:nixos/nixpkgs/nixos-23.05";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixinate = {
url = "github:matthewcroughan/nixinate";
inputs.nixpkgs.follows = "nixpkgs2305";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox = {
url = "github:colemickens/flake-firefox-nightly";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
robotnix.url = "github:danielfullmer/robotnix";
utils = {
url = "github:gytis-ivaskevicius/flake-utils-plus";
};
hercules-ci-agent.url = "github:hercules-ci/hercules-ci-agent";
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
inputs.nixpkgs-23_05.follows = "nixpkgs2305";
};
impermanence.url = "github:nix-community/impermanence";
potreecommitter.url = "git+ssh://[email protected]/MatthewCroughan/PotreeCommitter.git";
};
outputs =
{ self
, nix-super
, potreecommitter
, nixinate
, home-manager
, nixpkgs
, nixpkgs2305
, agenix
, nixos-hardware
, utils
, hercules-ci-agent
, simple-nixos-mailserver
, impermanence
, robotnix
, ...
} @ inputs: {
apps = nixinate.nixinate.x86_64-linux self;
nixosModules = import ./modules { lib = nixpkgs.lib; };
robotnixConfigurations = nixpkgs.lib.mapAttrs (n: v: robotnix.lib.robotnixSystem v) {
pyxis = import ./hosts/pyxis/default.nix;
# More phones here ...
# E.g: bacon = import ./hosts/bacon/default.nix;
};
nixosConfigurations = {
t480 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/t480/configuration.nix
utils.nixosModules.autoGenFromInputs
home-manager.nixosModules.home-manager
agenix.nixosModules.age
nixos-hardware.nixosModules.lenovo-thinkpad-t480
nixos-hardware.nixosModules.common-cpu-intel-kaby-lake
nixos-hardware.nixosModules.common-gpu-intel
];
specialArgs = { inherit inputs; };
};
swordfish = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
utils.nixosModules.autoGenFromInputs
./hosts/swordfish/configuration.nix
home-manager.nixosModules.home-manager
agenix.nixosModules.age
hercules-ci-agent.nixosModules.multi-agent-service
];
specialArgs = { inherit inputs; };
};
matrix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/matrix/configuration.nix
agenix.nixosModules.age
];
specialArgs = { inherit inputs; };
};
mail = nixpkgs2305.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/mail/configuration.nix
simple-nixos-mailserver.nixosModules.mailserver
];
specialArgs = { inherit inputs; };
};
doesRouter = nixpkgs2305.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/doesRouter/configuration.nix
"${nixpkgs}/nixos/modules/profiles/hardened.nix"
home-manager.nixosModules.home-manager
agenix.nixosModules.age
impermanence.nixosModule
];
specialArgs = { inherit inputs; };
};
hetznix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/hetznix/configuration.nix
agenix.nixosModules.age
];
specialArgs = { inherit inputs; };
};
h1 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/h1/configuration.nix
potreecommitter.nixosModules.potreecommitter
utils.nixosModules.autoGenFromInputs
home-manager.nixosModules.home-manager
agenix.nixosModules.age
hercules-ci-agent.nixosModules.multi-agent-service
];
specialArgs = { inherit inputs; };
};
};
};
}