-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
48 lines (42 loc) · 1.37 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
{
description = "Inhibit Wayland idling when audio is played through PipeWire";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.treefmt-nix.flakeModule
inputs.flake-parts.flakeModules.easyOverlay
];
flake = {
homeModules = rec {
wayland-pipewire-idle-inhibit = import ./module.nix;
default = wayland-pipewire-idle-inhibit;
};
};
systems = [ "x86_64-linux" ];
perSystem = { config, pkgs, ... }: {
devShells.default = import ./shell.nix { inherit pkgs; };
packages.wayland-pipewire-idle-inhibit = pkgs.callPackage ./default.nix { };
packages.default = config.packages.wayland-pipewire-idle-inhibit;
overlayAttrs = {
inherit (config.packages) wayland-pipewire-idle-inhibit;
};
treefmt.config = {
projectRootFile = "flake.nix";
programs = {
rustfmt.enable = true;
nixpkgs-fmt.enable = true;
taplo.enable = true;
prettier.enable = true;
};
};
};
};
}