17 lines
365 B
Nix
17 lines
365 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.homelab.apps.calibre;
|
|
in {
|
|
options.homelab.apps.calibre.enable = lib.mkEnableOption "Calibre";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.calibre = {
|
|
uid = lib.mkForce 3010;
|
|
isSystemUser = true;
|
|
group = config.users.groups.media.name;
|
|
home = "/var/empty";
|
|
shell = null;
|
|
};
|
|
};
|
|
}
|