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
|
@ -1,8 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
fswebcam
|
|
||||||
gnome.cheese
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -16,5 +16,6 @@ in
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
sync.enable = true;
|
sync.enable = true;
|
||||||
|
webcam.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
./printing
|
./printing
|
||||||
./sway
|
./sway
|
||||||
./sync
|
./sync
|
||||||
|
./webcam
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
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