chore: pretty up with alejandra
This commit is contained in:
parent
7bbda6140f
commit
37b85877bb
75 changed files with 584 additions and 452 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./kdenlive.nix
|
||||
./video-player.nix
|
||||
|
|
|
|||
|
|
@ -9,13 +9,14 @@
|
|||
# * pkgs.kdePackages.kdenlive (preferred, modern KDE split)
|
||||
# * pkgs.libsForQt5.kdenlive (older releases, fallback)
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.home.kdenlive;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.nyx-module.home.kdenlive;
|
||||
in {
|
||||
options.nyx-module.home.kdenlive = {
|
||||
enable = lib.mkEnableOption "Enable Kdenlive (home) module";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,20 +6,21 @@
|
|||
# Notes:
|
||||
# - Defaults to [ vlc ]
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.home.video-player;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.nyx-module.home.video-player;
|
||||
in {
|
||||
options.nyx-module.home.video-player = {
|
||||
enable = lib.mkEnableOption "Enable video players (home module)";
|
||||
|
||||
packages = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ pkgs.vlc ];
|
||||
example = [ pkgs.vlc pkgs.mpv pkgs.celluloid ];
|
||||
default = [pkgs.vlc];
|
||||
example = [pkgs.vlc pkgs.mpv pkgs.celluloid];
|
||||
description = "List of video/media players to install (e.g. vlc, mpv, celluloid).";
|
||||
};
|
||||
};
|
||||
|
|
@ -28,12 +29,11 @@ in
|
|||
home.packages = cfg.packages;
|
||||
};
|
||||
}
|
||||
|
||||
##########
|
||||
# Example
|
||||
##########
|
||||
|
||||
# nyx-module.home.video-player = {
|
||||
# enable = true;
|
||||
# packages = [ pkgs.vlc pkgs.mpv ];
|
||||
# };
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,14 @@
|
|||
# Notes:
|
||||
# - Installed via home.packages
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nyx-module.home.zoom;
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.nyx-module.home.zoom;
|
||||
in {
|
||||
options.nyx-module.home.zoom = {
|
||||
enable = lib.mkEnableOption "Enable Zoom (home) module";
|
||||
|
||||
|
|
@ -27,6 +28,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages = [cfg.package];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue