forked from fufexan/nix-gaming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
39 lines (33 loc) · 1.19 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
{
description = "Gaming on Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = {self, ...} @ inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
flake.nixosModules = let
inherit (inputs.nixpkgs) lib;
in {
pipewireLowLatency = import ./modules/pipewireLowLatency.nix;
steamCompat = import ./modules/steamCompat.nix;
default = throw (lib.mdDoc ''
The usage of default module is deprecated as multiple modules are provided by nix-gaming. Please use
the exact name of the module you would like to use. Available modules are:
${builtins.concatStringsSep "\n" (lib.filter (name: name != "default") (lib.attrNames self.nixosModules))}
'');
};
imports = [
./lib
./pkgs
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
};
};
# auto-fetch deps when `nix run/shell`ing
nixConfig = {
extra-substituters = ["https://nix-gaming.cachix.org"];
extra-trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
};
}