-
Notifications
You must be signed in to change notification settings - Fork 14
/
flake.nix
44 lines (40 loc) · 1004 Bytes
/
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
{
description = "This is a flake template";
inputs = {
nix.url = "github:NixOS/nix";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = {
self,
nixpkgs,
flake-utils,
...
} @ inputs: let
inherit (nixpkgs.lib) recursiveUpdate foldl' nixosSystem;
in
foldl' recursiveUpdate {} [
# System-dependent outputs
(flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) mkShell;
in {
devShell = mkShell {
buildInputs = with pkgs; [
# Make sure we have a fresh nix
nixUnstable
alejandra
rnix-lsp
];
};
}))
# System-independent outputs
{
module = import ./nixos/modules/services/games/minecraft-servers;
}
];
}