21 lines
362 B
Nix
21 lines
362 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
cfg = config.custom.services.zfsBackupServer;
|
||
|
in
|
||
|
{
|
||
|
options.custom.services.zfsBackupServer.enable = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = false;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
users.users.root.openssh.authorizedKeys.keys = [ ];
|
||
|
environment.systemPackages = with pkgs; [ lz4 ];
|
||
|
};
|
||
|
}
|