treewide: format
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m53s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m53s
This commit is contained in:
@ -1,7 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let cfg = config.modules.programs.recording;
|
||||
in {
|
||||
let
|
||||
cfg = config.modules.programs.recording;
|
||||
in
|
||||
{
|
||||
options.modules.programs.recording = {
|
||||
audio.enable = lib.mkOption {
|
||||
default = false;
|
||||
@ -14,15 +21,26 @@ in {
|
||||
};
|
||||
|
||||
config = {
|
||||
user.packages = with pkgs;
|
||||
(if cfg.audio.enable then [
|
||||
ardour
|
||||
audacity
|
||||
] else []) ++
|
||||
(if cfg.video.enable then [
|
||||
handbrake
|
||||
mkvtoolnix
|
||||
obs-studio
|
||||
] else []);
|
||||
user.packages =
|
||||
with pkgs;
|
||||
(
|
||||
if cfg.audio.enable then
|
||||
[
|
||||
ardour
|
||||
audacity
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
++ (
|
||||
if cfg.video.enable then
|
||||
[
|
||||
handbrake
|
||||
mkvtoolnix
|
||||
obs-studio
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user