Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
75 lines (68 loc) · 2.03 KB
/
Copy pathflake.nix
File metadata and controls
75 lines (68 loc) · 2.03 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
description = "Settings for Logitech MX Master mice on Linux: buttons, gestures, Actions Ring, wheel and haptics";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (
pkgs:
let
mxoptions = pkgs.callPackage ./nix/package.nix { };
in
{
inherit mxoptions;
default = mxoptions;
}
);
overlays.default = final: prev: {
mxoptions = final.callPackage ./nix/package.nix { };
};
nixosModules.default = import ./nix/module.nix { inherit self; };
nixosModules.mxoptions = self.nixosModules.default;
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
(python3.withPackages (
ps: with ps; [
pyside6
evdev
numpy
]
))
qt6.qtbase
qt6.qtdeclarative
qt6.qtmultimedia
qt6.qtsvg
qt6.qtwayland
kdePackages.layer-shell-qt
wl-clipboard
xclip
];
# The ring tests load QML modules from the Qt packages above. An installed copy gets
# this from its wrapper; a development shell needs it set itself.
NIXPKGS_QT6_QML_IMPORT_PATH = pkgs.lib.makeSearchPath "lib/qt-6/qml" (
with pkgs;
[
qt6.qtbase
qt6.qtdeclarative
qt6.qtmultimedia
qt6.qtsvg
qt6.qtwayland
kdePackages.layer-shell-qt
]
);
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt);
checks = forAllSystems (pkgs: {
inherit (self.packages.${pkgs.stdenv.hostPlatform.system}) mxoptions;
});
};
}