-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (51 loc) · 1.59 KB
/
Copy pathflake.nix
File metadata and controls
57 lines (51 loc) · 1.59 KB
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
{
description = "scx-git — bleeding-edge sched-ext schedulers (git main) packaged for NixOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
std = {
url = "github:Daaboulex/nix-packaging-standard?ref=v2.11.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.git-hooks.follows = "git-hooks";
};
};
outputs =
inputs@{ flake-parts, self, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
];
imports = [ inputs.std.flakeModules.base ];
flake.overlays.default = import ./overlay.nix;
flake.nixosModules.default = import ./module.nix;
perSystem =
{ system, ... }:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
in
{
packages.scx-git = pkgs.scx-git;
packages.scx-git-full = pkgs.scx-git-full;
packages.default = pkgs.scx-git-full;
checks.module-eval-nixos = inputs.std.lib.nixosModuleCheck {
inherit (inputs) nixpkgs;
inherit system;
overlays = [ self.overlays.default ];
module = ./module.nix;
config = {
scx-git.enable = true;
services.scx.enable = true;
services.scx.scheduler = "scx_rusty";
};
};
};
};
}