This commit is contained in:
Peritia 2025-09-10 12:17:16 +02:00
parent fc0abdd4bb
commit aca73cdd0f
73 changed files with 3873 additions and 381 deletions

View file

@ -1,3 +1,13 @@
# Camera GUI module
#
# Provides:
# - Camera GUI package (default: snapshot)
# - libcamera (always installed, required backend)
#
# Notes:
# - You can override the GUI package with another (e.g., cheese, kamoso)
#
{ config, lib, pkgs, ... }:
let
@ -9,12 +19,16 @@ in
package = lib.mkOption {
type = lib.types.package;
default = pkgs.camera;
description = "Package to install for camera.";
default = pkgs.snapshot;
example = pkgs.cheese;
description = "Camera GUI package to install.";
};
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [
cfg.package
pkgs.libcamera
];
};
}