Rewrite MakeMKV into a proper module

This commit is contained in:
Andreas Zweili 2023-05-27 12:36:25 +02:00
parent 67057b918c
commit 6e82b206a8
2 changed files with 16 additions and 6 deletions

View File

@ -1,9 +1,18 @@
{ custom }: { pkgs, ... }:
{ custom }: { config, lib, pkgs, ... }:
let
cfg = config.programs.makemkv;
in
{
home-manager.users.${custom.username} = {
home.packages = with pkgs; [
makemkv
];
options = {
programs.makemkv.enable = lib.mkEnableOption "MakeMKV";
};
config = lib.mkIf cfg.enable {
home-manager.users.${custom.username} = {
home.packages = with pkgs; [
makemkv
];
};
boot.kernelModules = [ "sg" ];
};
boot.kernelModules = [ "sg" ];
}

View File

@ -53,6 +53,7 @@
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
programs.makemkv.enable = true;
virtualisation.virtualbox.host.enable = true;
}