-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
100 lines (87 loc) · 2.9 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
{
description = "r3 iot vm config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# TODO: Add any other flake you might need
hardware.url = "github:nixos/nixos-hardware";
grical-to-mob.url = "github:realraum/grical-to-mobilizon";
grical-to-mob.inputs.nixpkgs.follows = "nixpkgs";
deckenlichtschalter.url = "github:realraum/deckenlichtschalter";
deckenlichtschalter.inputs.nixpkgs.follows = "nixpkgs";
mkg-mod.url = "github:mkg20001/mkg-mod/master";
mkg-mod.inputs.nixpkgs.follows = "nixpkgs";
# Shameless plug: looking for a way to nixify your themes and make
# everything match nicely? Try nix-colors!
# nix-colors.url = "github:misterio77/nix-colors";
};
outputs = {
self,
nixpkgs,
grical-to-mob,
mkg-mod,
deckenlichtschalter,
...
} @ inputs: let
inherit (self) outputs;
in {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
iot = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [./iot/configuration.nix];
};
misc = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
({ nixpkgs.overlays = [ grical-to-mob.overlays.default ]; })
mkg-mod.nixosModules.yggdrasil
grical-to-mob.nixosModules.grical-to-mob
./misc/configuration.nix
];
};
hardlight = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
({ nixpkgs.overlays = [ deckenlichtschalter.overlays.default ]; })
mkg-mod.nixosModules.yggdrasil
deckenlichtschalter.nixosModules.golightctrl
./hardlight/configuration.nix
];
};
virt = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
mkg-mod.nixosModules.yggdrasil
./virt/configuration.nix
];
};
acme = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
mkg-mod.nixosModules.yggdrasil
./acme/configuration.nix
];
};
website = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [
mkg-mod.nixosModules.yggdrasil
./website/configuration.nix
];
};
prusa-pi = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
# > Our main nixos configuration file <
modules = [./prusa-pi/configuration.nix];
};
};
};
}