profiles/webcam: init from legacy

This commit is contained in:
Felix Buehler 2023-03-19 22:40:58 +01:00
parent 74377750b9
commit 362d06cc00
4 changed files with 18 additions and 8 deletions

View file

@ -1,8 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
fswebcam
gnome.cheese
];
}

View file

@ -16,5 +16,6 @@ in
printing.enable = true;
sway.enable = true;
sync.enable = true;
webcam.enable = true;
};
}

View file

@ -13,5 +13,6 @@
./printing
./sway
./sync
./webcam
];
}

View 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
];
};
}