feat: add calibre and game virtualization
This commit is contained in:
parent
82f1d9d5c9
commit
d7202a1af1
3 changed files with 84 additions and 0 deletions
27
modules/nixos/desktop/calibre.nix
Normal file
27
modules/nixos/desktop/calibre.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [];
|
||||
|
||||
options = {
|
||||
zw-calibre = {
|
||||
enable = lib.mkEnableOption "Enable Calibre";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
config.allowUnfreePredigate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"calibre"
|
||||
"unrar"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(calibre.override {
|
||||
unrarSupport = true;
|
||||
})
|
||||
unrar
|
||||
];
|
||||
|
||||
services.udisks2.enable = true;
|
||||
};
|
||||
# NOTE: Consider adding https://github.com/nydragon/calibre-plugins
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue