mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profiles/webcam: init from legacy
This commit is contained in:
parent
74377750b9
commit
362d06cc00
4 changed files with 18 additions and 8 deletions
16
profiles/webcam/default.nix
Normal file
16
profiles/webcam/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue