mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
17 lines
316 B
Nix
17 lines
316 B
Nix
![]() |
{ config, lib, pkgs, ... }:
|
||
|
let
|
||
|
cfg = config.my.profiles.webcam;
|
||
|
in
|
||
|
{
|
||
|
options.my.profiles.webcam = with lib; {
|
||
|
enable = mkEnableOption "webcam profile";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
fswebcam
|
||
|
# gnome.cheese does no longer work
|
||
|
];
|
||
|
};
|
||
|
}
|