forked from notthebee/AutoASPM
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (28 loc) · 697 Bytes
/
flake.nix
File metadata and controls
30 lines (28 loc) · 697 Bytes
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
{
description = "Automatically enable ASPM on all supported PCIe devices";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{
self,
nixpkgs,
}:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
eachSystem = nixpkgs.lib.genAttrs systems;
in
{
nixosModules = {
autoaspm = import ./modules/autoaspm.nix { inherit self; };
default = self.nixosModules.autoaspm;
};
packages = eachSystem (system: {
default = self.packages.${system}.autoaspm;
autoaspm = nixpkgs.legacyPackages.${system}.callPackage ./pkgs/autoaspm.nix { };
});
};
}