ha-kiosk-agent/flake.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-19 17:12:16 +00:00
{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
2024-03-19 22:23:28 +00:00
systems = [ "x86_64-linux" "aarch64-linux" ];
2024-03-19 17:12:16 +00:00
perSystem = { self', system, lib, config, pkgs, ... }: {
packages.default = pkgs.python311Packages.buildPythonApplication {
pname = "ha-kiosk-agent";
version = "0.0.1";
2024-03-22 11:15:07 +00:00
src = ./src;
2024-03-19 20:19:22 +00:00
propagatedBuildInputs = with pkgs.python311Packages; [
2024-04-10 20:04:01 +00:00
pkgs.light
2024-04-12 22:38:30 +00:00
pkgs.wirelesstools
2024-04-10 20:04:01 +00:00
pkgs.xorg.xset
2024-03-20 14:23:54 +00:00
2024-03-19 20:19:22 +00:00
coloredlogs
configargparse
evdev
2024-03-19 20:19:22 +00:00
ha-mqtt-discoverable
psutil
2024-03-19 20:19:22 +00:00
];
2024-03-19 17:12:16 +00:00
};
devShells.default = pkgs.mkShell {
name = "development shell";
nativeBuildInputs = with pkgs.python311Packages; [
2024-04-10 20:04:01 +00:00
pkgs.light
2024-04-12 22:38:30 +00:00
pkgs.wirelesstools
2024-04-10 20:04:01 +00:00
pkgs.xorg.xset
2024-03-19 17:12:16 +00:00
coloredlogs
configargparse
evdev
2024-03-19 17:12:16 +00:00
ha-mqtt-discoverable
psutil
2024-03-19 17:12:16 +00:00
];
};
};
};
}