-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
60 lines (54 loc) · 1.51 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
57
58
59
60
{
inputs = {
systems.url = "github:nix-systems/default-linux";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgrep = {
url = "github:0xc000022070/nixgrep";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs";
};
outputs = {
poetry2nix,
systems,
nixgrep,
nixpkgs,
self,
}: let
inherit (nixpkgs) lib;
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem = system;
});
eachSystem = lib.genAttrs (import systems);
in {
packages = eachSystem (system: let
pkgs = pkgsFor.${system};
entries = {
sys-brightness = ./apps/sys-brightness;
screen-capture-x11 = ./apps/screen-capture-x11;
nmcli-wifi-scan-waybar = ./apps/nmcli-wifi-scan-waybar;
# playerctl-waybar = ./apps/playerctl-waybar;
sys-sound = ./apps/sys-sound;
batlimit = ./apps/batlimit;
cliphist-rofi = ./apps/cliphist-rofi;
swww-switcher = ./apps/swww-switcher;
mullvad-status = ./apps/mullvad-status;
};
in
{
default = (nixgrep.packages.${system}).nixgrep;
inherit (nixgrep.packages.${system}) nixgrep;
}
// lib.attrsets.mapAttrs (_n: p:
pkgs.callPackage p {
inherit (poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}) mkPoetryApplication;
inherit pkgs;
})
entries);
homeManagerModules.default = import ./nix/hm-module.nix self;
};
}