-
Notifications
You must be signed in to change notification settings - Fork 27
/
flake.nix
56 lines (50 loc) · 1.26 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
48
49
50
51
52
53
54
55
56
{
description = "Wallpaper daemon for Wayland";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
systems,
rust-overlay,
...
}: let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
inherit system;
overlays = [self.overlays.default (import rust-overlay)];
});
in {
overlays = import ./nix/overlays.nix {inherit self lib pkgsFor;};
packages = eachSystem (system: {
default = self.packages.${system}.wpaperd;
inherit
(pkgsFor.${system})
wpaperd
;
});
devShells = eachSystem (system:
with pkgsFor.${system}; {
default = mkShell {
buildInputs = [
rust-bin.stable.latest.default
];
packages = [
pkg-config
wayland
glew
];
};
});
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
homeManagerModules.default = import ./nix/hm-module.nix self;
};
}